skillfed

pysmi-lextudio

A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.

pysmi-lextudio v1.4.3 266.1K downloads/30d#8,308 on PyPI10
Permissive license BSD-2-Clause Active released

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-lextudio

uv

uv add pysmi-lextudio

poetry

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 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

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: CommunicationsTopic :: Software Development :: Libraries :: Python Modules

Tags

SNMP MIB parserASN.1 MIB compilerMIB to JSON conversionSNMP management information basenetwork MIB processingPySNMP MIB generation
snmpnetwork-managementasn1-parser

More Python Modules packages