genie.libs.ops
Genie libs Ops: Libraries to retrieve operational state of the topology
What it is and what it does
Genie Libs Ops is a library component of the Genie test automation framework that abstracts network device operational state into Python objects. It works within the pyATS ecosystem—Cisco's end-to-end testing platform designed for data-driven, reusable test automation. The ops module lets you model and access the operational state of network features (like interfaces, routing, or protocols) as object attributes rather than raw CLI output, making test code more readable and maintainable.
The package has no external runtime dependencies and is designed to integrate with Genie's broader test harness. It supports Python 3 on Linux and Mac systems. The library encourages object-oriented test automation by providing a structured way to represent network state, which aligns with Genie's philosophy of simplifying test development through reusable, modular components.
Use it for:
- Write network device tests that verify operational state (e.g., interface status, routing table entries) using object attributes instead of parsing CLI output
- Build reusable test libraries that model network topology state consistently across different device types and vendors
- Develop data-driven test suites that validate network behavior in Agile development cycles using Genie's test framework
- Automate operational state validation in CI/CD pipelines for network infrastructure changes
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Genie Libs Ops provides a library component for the Genie test framework that models and retrieves the operational state of network topology features through object attributes.
Yes, if you are already using Genie or pyATS for network test automation. The package is actively maintained, has no external dependencies, and carries a permissive Apache 2.0 license. It is a foundational component of Genie's ops abstraction layer. Install it as part of your Genie ecosystem setup; standalone use is less common.
Install
genie-libs-ops on PyPI
pip
pip install genie-libs-opsuv
uv add genie-libs-opspoetry
poetry add genie-libs-opsInstalling genie.libs.ops
Before you install
Active maintenance with a release within the last week. No runtime dependencies, making installation straightforward. Part of the established Genie/pyATS ecosystem from Cisco.
License in practice
Apache 2.0 permissive license allows use in commercial and open-source projects with minimal restrictions.
Quickstart
pip install genie.libs.ops
from genie.libs.ops import ops
# Access operational state through Genie's ops module
Requires Python 3 on Linux or Mac; Windows is not supported.
Verify before relying
- Whether this package is typically installed standalone or as part of the broader genie package installation
- What specific network devices or platforms the ops component supports
- Performance characteristics when querying operational state on large topologies
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 7 days since the last release |
| First released | |
| Downloads | 268,403/month — #8,276 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: genie_libs_ops-26.7-py3-none-any.whl
Keywords: genie, pyats, test, automation
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
genieGenie is a test automation library and harness…
permissive · top 15,000 on PyPI
genie.libs.confGenie Libs Conf provides Python object-based…
permissive · top 15,000 on PyPI
genie.libs.sdkGenie Libs SDK provides a library of reusable…
permissive · top 15,000 on PyPI
genie.libs.parserParses device output into structured data for…
permissive · top 15,000 on PyPI
genie.libs.healthProvides health monitoring and diagnostics for…
permissive · top 15,000 on PyPI
genie.libs.robotProvides RobotFramework keywords to interact…
permissive · top 15,000 on PyPI
genie.trafficgenProvides connection implementations to traffic…
permissive · top 15,000 on PyPI
genie.libs.cleanGenie Clean provides device recovery and state…
permissive · top 15,000 on PyPI
genie.libs.filetransferutilsProvides utility functions for transferring…
permissive · top 15,000 on PyPI
genie.telemetryGenie Telemetry monitors testbed health status…
permissive · top 15,000 on PyPI