File: index.rst

package info (click to toggle)
python-pysnmp-lextudio 5.0.26-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,924 kB
  • sloc: python: 20,376; makefile: 173; sh: 21; javascript: 4
file content (41 lines) | stat: -rw-r--r-- 1,531 bytes parent folder | download
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

Asynchronous: asyncio
=====================

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.

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.

We do not provide Command Generator and Notification Originator examples,
as it is much easier to use
:doc:`high-level interfaces </examples/hlapi/asyncio/index>` instead.

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

.. toctree::

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

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