A Python library for SNMP
Actively maintained. Last release 6 days ago, commits in 6 of the last 26 weeks. A safe choice.
$
pip install pysnmpSNMP Library for Python
This is a pure-Python, open source and free implementation of v1/v2c/v3 SNMP engine distributed under 2-clause BSD license.
Features
- Complete SNMPv1/v2c and SNMPv3 support based on IETF RFC standards.
- SMI framework for resolving MIB information and implementing SMI Managed Objects
- Complete SNMP entity implementation
- USM Extended Security Options support (3DES, 192/256-bit AES encryption) based on draft standards and vendor implementations.
- Extensible network transports framework (UDP/IPv4, UDP/IPv6)
- Asynchronous socket-based IO API support via asyncio integration
- PySMI integration for dynamic MIB compilation
- Built-in instrumentation exposing protocol engine operations
- Python eggs and py2exe friendly
- 100% Python, works with Python 3.11+ (tested on 3.11–3.15)
- MT-safe (if SnmpEngine is thread-local)
Features, specific to SNMPv3 model include:
- USM authentication (MD5/SHA-1/SHA-2) and privacy (DES/AES) protocols (RFC3414, RFC7860)
- View-based access control to use with any SNMP model (RFC3415)
- Built-in SNMP proxy PDU converter for building multi-lingual SNMP entities (RFC2576)
- Remote SNMP engine configuration
- Optional SNMP engine discovery
- Shipped with standard SNMP applications (RFC3413)
Download & Install
The PySNMP package is freely available for download from and .