pysmi
A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.
Decision gist · record as of 2026-08-14
Yes. PySMI is actively maintained, has no known vulnerabilities, installs with low friction, and carries a permissive license. It fills a specific and necessary role in SNMP tooling—there is no standard library alternative for MIB parsing. Install it if you need to work with SNMP MIBs in Python.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; MIB source files must be accessible locally, in ZIP archives, or via HTTP.
- Low friction installation with three lightweight runtime dependencies (Jinja2, lark, requests).
- Actively maintained with a recent release 110 days ago and ongoing repository activity.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause permissive license allows commercial and private use with minimal restrictions; you must retain copyright notices and license text.
last release 2026-04-26 (110 days) · last repo commit 2026-04-26 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,972,727 downloads/mo, #3,394 on PyPI
Alternatives
Verify before relying
pip install pysmi
from pysmi.parser import Parser
from pysmi.codegen import PySnmpWriter
parser = Parser()
writer = PySnmpWriter()
# Parse a MIB file and generate PySNMP module- Whether the package handles all real-world MIB dialects beyond the documented SMIv1, SMIv2, and de-facto variants
- Performance characteristics when processing large MIB hierarchies or many interdependent modules
What it is and what it does
PySMI is a pure-Python tool that reads SNMP MIB files written in ASN.1 and translates them into usable Python code or structured data. It understands multiple SNMP MIB dialects (SMIv1, SMIv2, and non-standard variants) and can generate either PySNMP-compatible Python modules or JSON representations. The tool handles MIB dependencies automatically, pulling source files from local directories, ZIP archives, or HTTP servers as needed.
You would use PySMI when you need to work with SNMP network management data in Python—typically to generate Python classes from vendor or standard MIBs so you can query network devices, or to convert MIB definitions into JSON for documentation or downstream processing. It depends on Jinja2 for templating, lark for parsing, and requests for fetching remote MIB files.
Use it for
- Generate PySNMP classes from vendor MIBs to query network devices programmatically
- Convert SNMP MIB definitions to JSON for API documentation or configuration management
- Build a searchable index of MIB objects across multiple MIB modules for network inventory tools
- Automate MIB compilation in CI/CD pipelines when deploying network monitoring solutions
- Parse custom or proprietary SNMP MIBs to integrate legacy network equipment into modern Python applications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PySMI is actively maintained, has no known vulnerabilities, installs with low friction, and carries a permissive license. It fills a specific and necessary role in SNMP tooling—there is no standard library alternative for MIB parsing. Install it if you need to work with SNMP MIBs in Python.
Install
pysmi on PyPI
Before you install
Low friction installation with three lightweight runtime dependencies (Jinja2, lark, requests). Actively maintained with a recent release 110 days ago and ongoing repository activity.
Requires Python 3.10 or later; MIB source files must be accessible locally, in ZIP archives, or via HTTP.
License in practice
BSD-2-Clause permissive license allows commercial and private use with minimal restrictions; you must retain copyright notices and license text.
Quickstart
pip install pysmi
from pysmi.parser import Parser
from pysmi.codegen import PySnmpWriter
parser = Parser()
writer = PySnmpWriter()
# Parse a MIB file and generate PySNMP module
Verify before relying
- Whether the package handles all real-world MIB dialects beyond the documented SMIv1, SMIv2, and de-facto variants
- Performance characteristics when processing large MIB hierarchies or many interdependent modules
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesJinja2larkrequests |
| Maintenance | Actively maintained 110 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,972,727 / month, #3,394 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: System AdministratorsIntended Audience :: Telecommunications IndustryNatural Language :: EnglishOperating System :: OS IndependentTopic :: CommunicationsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pysmi-2.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “network management MIB parsing”
- pysmiPySMI parses SNMP MIB files in ASN.1 format and converts them to…
- pysmi-lextudioParses ASN.1 SNMP MIB files and converts them into JSON or…
- pysnmp-mibsProvides pre-compiled IETF and IANA MIBs as PySNMP classes for use in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also pysmi-lextudio · pysnmp-mibs · pysnmp-lextudio · snmpsim · pyasn1-modules · pyasn1 · pysnmpcrypto · asn1 · asn1tools