pysmi-lextudio
A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
What it is and what it does
PySMI is a pure-Python SNMP MIB compiler that reads ASN.1 MIB files and converts them into structured formats—primarily JSON documents or PySNMP Python modules. It understands SMIv1, SMIv2, and de-facto SMI dialects, and can automatically fetch MIBs from local directories, ZIP archives, or HTTP servers. The package maintains an index of MIB objects across multiple modules, enabling fast lookups in large collections.
Most users encounter PySMI indirectly: PySNMP calls it behind the scenes to download and compile MIBs automatically. However, you can also invoke the mibdump command-line tool directly to convert individual MIBs to JSON, or use the library programmatically to build custom MIB processing pipelines. It depends on ply for parsing, Jinja2 for code generation, and requests for HTTP MIB retrieval.
Use it for:
- Convert SNMP MIB files to JSON for integration into monitoring dashboards or configuration management systems
- Generate PySNMP-compatible Python modules from vendor MIBs to enable programmatic SNMP queries
- Build an indexed lookup service over thousands of MIB modules to quickly find OID definitions and object metadata
- Automate MIB compilation in CI/CD pipelines when deploying network management applications
- Parse and validate ASN.1 MIB syntax as part of network device documentation or inventory tools
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses ASN.1 SNMP MIB files and converts them into JSON or PySNMP-compatible Python modules for network management applications.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and fills a specific niche in SNMP tooling. Install it if you work with SNMP MIBs or use PySNMP; skip it if your project has no network management requirements.
Install
pysmi-lextudio on PyPI
pip
pip install pysmi-lextudiouv
uv add pysmi-lextudiopoetry
poetry add pysmi-lextudioInstalling pysmi-lextudio
Before you install
Low friction installation as a pure-Python wheel. Actively maintained with recent commits; marked Production/Stable and supports Python 3.8 through 3.12.
License in practice
BSD-2-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install pysmi-lextudio
from pysmi.parser import Parser
from pysmi.codegen import PySnmpWriter
# Parse a MIB file and generate PySNMP module
parser = Parser()
writer = PySnmpWriter('/output/path')
# Compile MIB via mibdump CLI tool or use library directly
Verify before relying
- Whether the package can be used programmatically as a library or primarily via the mibdump CLI tool
- Performance characteristics when processing large MIB collections or complex ASN.1 structures
- Completeness of SMIv1 and SMIv2 dialect support for non-standard MIB variations
Package facts
| License | BSD-2-Clause (permissive) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — ply, Jinja2, requests |
| Maintenance | actively maintained — 863 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 266,142/month — #8,308 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pysmi_lextudio-1.4.3-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pysmiPySMI parses SNMP MIB files in ASN.1 format and…
permissive · top 5,000 on PyPI
pysnmp-lextudioProvides SNMP protocol implementation for…
permissive · top 15,000 on PyPI
pysnmp-mibsProvides pre-compiled IETF and IANA MIBs as…
permissive · top 15,000 on PyPI
snmpsimSNMP Simulator creates a pure-Python SNMP agent…
permissive · top 15,000 on PyPI
pysnmpcryptoProvides stronger cryptographic algorithms for…
permissive · top 15,000 on PyPI
asn1toolsParses, encodes, and decodes ASN.1 messages…
permissive · top 15,000 on PyPI
pyasn1Pyasn1 encodes and decodes ASN.1 data…
permissive · top 100 on PyPI
asn1Encodes and decodes ASN.1 data structures using…
permissive · top 5,000 on PyPI
pyasn1-modulesProvides a collection of ASN.1 data structures…
permissive · top 100 on PyPI