Small, standalone Cisco CLI parsers derived from Cisco's Genie parsers
Project description
Yenie Parser
Yenie Parser is a small Python package for parsing Cisco CLI command output into structured dictionaries without importing the full Cisco Genie/pyATS stack.
The IOS-XE parser set covers command templates adapted from Cisco Genie parser files. Results use Genie-compatible dictionary shapes where the upstream parser defines them.
Install
This package is intended to work with normal Python packaging tools once published:
pip install yenie-parser
For local development with uv:
uv sync
uv run pytest
Usage
import yenie_parser
parsed = yenie_parser.parse(
platform="iosxe",
command="show device-tracking database",
raw_output=raw_cli_output,
)
The parser accepts only raw command output. It does not connect to devices or execute commands.
Command matching strips extra whitespace and is case-insensitive. It does not
rewrite Cisco command tokens, so device-tracking and device tracking are
different commands.
Available command templates can be inspected with:
commands = yenie_parser.supported_commands("iosxe")
Attribution
Parser behavior is derived from the Apache-2.0 licensed Cisco Genie parser project:
- Repository: https://github.com/CiscoTestAutomation/genieparser
- Source paths:
src/genie/libs/parser/iosxe/show_device_tracking.pysrc/genie/libs/parser/iosxe/show_authentication_sessions.pysrc/genie/libs/parser/iosxe/show_inventory.pysrc/genie/libs/parser/iosxe/show_cdp.pysrc/genie/libs/parser/iosxe/show_arp.pysrc/genie/libs/parser/iosxe/show_fdb.pysrc/genie/libs/parser/iosxe/show_interface.py
See docs/conversions/ for conversion metadata.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yenie_parser-0.2.0.tar.gz.
File metadata
- Download URL: yenie_parser-0.2.0.tar.gz
- Upload date:
- Size: 99.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e7fbe891b7ed6718cabfcac8c0c47a73dfcb0dfdc6679206b7ee479fb2dc2e8
|
|
| MD5 |
415f24715add39a4881ddaa3d5ff5113
|
|
| BLAKE2b-256 |
8dcdba392bbcd159883590be3c15746bebba621a9d8eeb0eef22b142e2a30895
|
File details
Details for the file yenie_parser-0.2.0-py3-none-any.whl.
File metadata
- Download URL: yenie_parser-0.2.0-py3-none-any.whl
- Upload date:
- Size: 105.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fe07e62cf162629ed026b1ab815338159f0668b2aae0b1dc06c514b0ae32d1c
|
|
| MD5 |
fca24f84ba3c1dd379719b807b8a40ed
|
|
| BLAKE2b-256 |
1d1285cb4de45ed5ee865117b6c71f5209e5a4f02ae4395a175ced7a0e8cdeeb
|