skillfed

genie.libs.ops

Genie libs Ops: Libraries to retrieve operational state of the topology

genie-libs-ops v26.7 268.4K downloads/30d#8,276 on PyPI
Permissive license Apache 2.0 Active released

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-ops

uv

uv add genie-libs-ops

poetry

poetry add genie-libs-ops

Installing 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

Development Status :: 5 - Production/StableDevelopment Status :: 6 - MatureEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing

Tags

network operational state modelinggenie test automation librarypyats ops componentnetwork device state retrievaltest framework operational datagenie topology state objects
network-testingcisco-pyatstest-automation

More Libraries packages