asyncio SNMP client
Project description
aiosnmp
aiosnmp is an asynchronous SNMP client for use with asyncio.
Installation
pip install aiosnmp
Notice
Only snmp v2c supported, no v3 support
Basic Usage
import asyncio
import aiosnmp
async def main():
with aiosnmp.Snmp(host="127.0.0.1", port=161, community="public") as snmp:
for res in await snmp.get(".1.3.6.1.2.1.1.1.0"):
print(res.oid, res.value)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
more in /examples
TODO
- documentation
- snmp v3 support
- more tests
License
aiosnmp is developed and distributed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiosnmp-0.2.3.tar.gz
(12.5 kB
view details)
Built Distribution
aiosnmp-0.2.3-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file aiosnmp-0.2.3.tar.gz
.
File metadata
- Download URL: aiosnmp-0.2.3.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218f4da11412262a41cbee4b3cf9efb00a1d3eb9bcf9a6f0fc038f046abe424d |
|
MD5 | 52f062ba45f0f3ae5dd33ec467577e5f |
|
BLAKE2b-256 | 70d41a9ce562053461102de168f561127d145b3cb1fb4f4071aeb4966c7238e4 |
File details
Details for the file aiosnmp-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: aiosnmp-0.2.3-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5eaaca612e6605acce9e8a551a637b66bcb80029dd6af8e71cb0ce9f2634af6c |
|
MD5 | 1d7df96c4be0f1870dc7e22f15ca040d |
|
BLAKE2b-256 | ae6077e2d5b8d74381dd4f3ec121ebbed6385dffb5b90f86e93f69d25e7f30a8 |