Download & Install¶
The SNMP SMI library is published to PyPI as pysnmp-pysmi. Note the name:
pysmi is the original, unmaintained package.
With uv:
$ uv add pysnmp-pysmi
Or with pip:
$ python -m venv venv
$ source venv/bin/activate
$ pip install pysnmp-pysmi
Either way you also get the command-line tools: mibdump to compile a module, mibcopy to normalize a source tree, mibpatch to apply a recorded repair, and mibcorpus to build a whole corpus from a manifest – which is what produces the MIB distribution. To run one without installing anything permanently:
$ uvx --from pysnmp-pysmi mibdump --help
PySMI needs Python 3.10 or newer.
Alternatively, you can download the latest release from GitHub or PyPI.