Asynchronous: asyncio¶
Python 3.4 introduced a new module - asyncio (former Tulip, PEP 3156) featuring infrastructure for writing single-threaded concurrent code using coroutines, multiplexing I/O access over sockets and other resources.
PySNMP uses asyncio for all asynchronous I/O. Its use requires understanding concepts such as coroutines and generators. If your task is to embed SNMP stack into an existing asyncio-based app, using PySNMP’s asyncio interfaces greatly simplifies the task.
All SNMP-related functionality of Native PySNMP API to Standard SNMP Applications (RFC3413) remains available to asyncio-backed applications.
We do not provide Command Generator and Notification Originator examples, as it is much easier to use high-level interfaces instead.
Command Responder Applications¶
Notification Receiver Applications¶
For more details on PySNMP programming model and interfaces, please refer to the documentation