Refer to the Python snimpy project: interactive SNMP tool with Python
Snimpy is a Python-based tool providing a simple interface to build SNMP query.
You can either use Snimpy:
- interactively through its console (derived from Python own console or from IPython if available) ;
- write scripts which are just Python scripts with some global variables available.