--- id: pysmi-lextudio version: "1.4.3" license: BSD-2-Clause license_treatment: permissive maintenance: active --- # pysmi-lextudio — A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. License: permissive · Maintenance: active · Downloads: 266.1K/mo ## 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 above — 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 pip install pysmi-lextudio uv add pysmi-lextudio poetry add pysmi-lextudio ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 266.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags SNMP MIB parser, ASN.1 MIB compiler, MIB to JSON conversion, SNMP management information base, network MIB processing, PySNMP MIB generation, snmp, network-management, asn1-parser [View on SkillFed](https://skillfed.io/packages/pysmi-lextudio) · [View on PyPI](https://pypi.org/project/pysmi-lextudio/)