genie.libs.parser
Genie libs Parser: Genie Parser Libraries
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-parseruv
uv add genie-libs-parserpoetry
poetry add genie-libs-parserInstalling 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
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
genie.libs.cleanGenie Clean provides device recovery and state…
permissive · top 15,000 on PyPI
genie.libs.healthProvides health monitoring and diagnostics for…
permissive · top 15,000 on PyPI
genie.libs.sdkGenie Libs SDK provides a library of reusable…
permissive · top 15,000 on PyPI
genie.trafficgenProvides connection implementations to traffic…
permissive · top 15,000 on PyPI
genie.libs.robotProvides RobotFramework keywords to interact…
permissive · top 15,000 on PyPI
genie.libs.confGenie Libs Conf provides Python object-based…
permissive · top 15,000 on PyPI
genie.libs.filetransferutilsProvides utility functions for transferring…
permissive · top 15,000 on PyPI
genie.libs.opsGenie Libs Ops provides a library component for…
permissive · top 15,000 on PyPI
genieGenie is a test automation library and harness…
permissive · top 15,000 on PyPI
genie.telemetryGenie Telemetry monitors testbed health status…
permissive · top 15,000 on PyPI