summaryrefslogtreecommitdiff
path: root/docs/source/examples/v3arch/asyncio/contents.rst
blob: c668f2f5be06d7cae8ff6451f0447dd9e72980b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

SNMP with Asynio
================

Python 3.4 introduced a new module - `asyncio <https://docs.python.org/3/library/asyncio.html>`_ (former Tulip,
PEP 3156) featuring infrastructure for writing single-threaded concurrent
code using coroutines, multiplexing I/O access over sockets and other
resources.

PySNMP library was originally built on top of Python's asynchronous I/O 
library called asyncio. The asyncio module offers similar functionality 
but uses much more modern and powerful language facilities. Functionally, 
asyncio can replace asyncio in PySNMP however its use requires understanding 
the 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.

Older applications (Python 2.6+) can alternatively use 
`Trollius <http://trollius.readthedocs.org/>`_ instead of asyncio. Trollius
is a backport of asyncio so it `supports </examples/current/v3arch/trollius/index.html>`_ nearly the same API as asyncio. Full support of both modules is
built into pysnmp.

All SNMP-related functionality of Native PySNMP API to Standard SNMP 
Applications (`RFC3413 <https://tools.ietf.org/html/rfc3413>`_)
remains available to asyncio-backed applications.

Command Generator Applications
------------------------------

.. toctree::

   /examples/v3arch/asyncio/manager/cmdgen/snmp-versions
   /examples/v3arch/asyncio/manager/cmdgen/modifying-variables
   /examples/v3arch/asyncio/manager/cmdgen/walking-operations
   /examples/v3arch/asyncio/manager/cmdgen/transport-tweaks


Command Responder Applications
------------------------------

.. toctree::

   /examples/v3arch/asyncio/agent/cmdrsp/snmp-versions

Notification Originator Applications
------------------------------------

.. toctree::

   /examples/v3arch/asyncio/agent/ntforg/common-notifications


Notification Receiver Applications
----------------------------------

.. toctree::

   /examples/v3arch/asyncio/manager/ntfrcv/transport-tweaks

For more details on PySNMP programming model and interfaces, please 
refer to the documentation