skillfed

genie.libs.parser

Genie libs Parser: Genie Parser Libraries

genie-libs-parser v26.7 270.2K downloads/30d#8,241 on PyPI
Permissive license Apache 2.0 Active released

What it is and what it does

Genie Parser is a sub-component of the Genie test automation framework that transforms raw device command output into structured Python data structures. It is designed to work within the pyATS ecosystem, which Cisco built for data-driven, reusable network testing. The parser converts unstructured CLI responses into objects that test code can query and validate programmatically, eliminating the need for regex parsing or manual text processing in test scripts.

The package is part of a larger testing framework optimized for network device automation, particularly in Cisco environments. It depends only on xmltodict for XML handling and installs as a pure Python wheel, making it lightweight to add to existing test suites. The framework is actively maintained and classified as production/mature, with support for modern Python versions on Linux and Mac systems.

Use it for:

  • Parse network device CLI output (show commands) into structured dictionaries for validation in automated tests
  • Build reusable test cases that work across multiple device types by normalizing their output formats
  • Extract specific fields from device responses (e.g., version, interface status) without writing custom regex
  • Integrate device output parsing into CI/CD pipelines for continuous network validation
  • Develop data-driven test suites that compare parsed device state against expected configurations

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Parses device output into structured data for network test automation, converting raw command responses into Python objects for use in the Genie/pyATS testing framework.

Yes, if you are building test automation for network devices within the pyATS/Genie ecosystem. The package is actively maintained, has no known vulnerabilities, and low install friction. However, verify first whether it can be used standalone or requires the full Genie framework—the description suggests it is a sub-component designed to work within that larger system.

Install

genie-libs-parser on PyPI

pip

pip install genie-libs-parser

uv

uv add genie-libs-parser

poetry

poetry add genie-libs-parser

Installing genie.libs.parser

Before you install

Active maintenance with a release 7 days ago. Single runtime dependency (xmltodict) and a pure-Python wheel keep installation friction low.

License in practice

Apache 2.0 permissive license allows use in commercial and open-source projects with minimal restrictions.

Quickstart

pip install genie.libs.parser

from genie.libs.parser.iosxe.show_version import ShowVersion
parser = ShowVersion(device)
output = parser.parse()
print(output['version']['os'])

Requires Linux or Mac; Windows is not supported. Python 3.6+ required.

Verify before relying

  • Whether this package can be installed standalone or requires the full Genie framework to function
  • Specific device types and command outputs supported by the parser library
  • Performance characteristics when parsing large or complex device outputs

Package facts

License Apache 2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — xmltodict
Maintenance actively maintained — 7 days since the last release
First released
Downloads 270,195/month — #8,241 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: genie_libs_parser-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 :: Implementation :: CPythonTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Testing

Tags

network device output parserstructured data from CLI outputgenie parser librarypyats test automationnetwork command parsingdevice response parsingtest automation framework
network-testingdevice-automationcisco

More Libraries packages