asyncio SNMP client
Project description
aiosnmp is an asynchronous SNMP client for use with asyncio.
Notice on 0.6.0 build
Installation
pip install aiosnmp
Documentation
Notice
Source address (host and port) validation
By default, v2c should not validate source addr, but in this library, it is enabled by default. You can disable validation by passing validate_source_addr=False to Snmp.
Basic Usage
import asyncio
import aiosnmp
async def main():
async 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)
asyncio.run(main())
more in /examples
TODO
snmp v3 support
more tests
License
aiosnmp is developed and distributed under the MIT license.
Run local tests
pip install -r requirements-dev.txt
tox
Before submitting PR
pip install -r requirements-dev.txt
tox -e format
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
Built Distributions
File details
Details for the file aiosnmp-0.6.0.tar.gz
.
File metadata
- Download URL: aiosnmp-0.6.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f76a340910db2b7f538645c02dcd463c48766d3b4c397fee2658801965e70f5 |
|
MD5 | be17fa510ec205ce78870583e32342d3 |
|
BLAKE2b-256 | 7585d72ae0d0692852d0e04c614144c81c3bbecf1cb35dd8ebc67ac8f44a6ee4 |
File details
Details for the file aiosnmp-0.6.0-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 485.8 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8c3b6e686bb9188c35917c981f00361131c5f2b53f29c45bd2d127cca94289d |
|
MD5 | 76db6b516f4ed798f91bc642a18c312b |
|
BLAKE2b-256 | 0f8d86f8dd6f4f8598f415fd53c47a37bc9b4380d9fbff02303e3c5cf35c8a56 |
File details
Details for the file aiosnmp-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21dbb58ce028dcc02081d6392a0519c6be862701a659ad0b02d9d87340eee2ba |
|
MD5 | 31599d875da50270434bbfb722e9b7a2 |
|
BLAKE2b-256 | 265bb1e8af5442edf6b29f5cbc7c6ac2122641c305ebeddf73fd0555685a7b43 |
File details
Details for the file aiosnmp-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 619.8 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 987ecbb02ee41a64f74fa545bde8db82b395860fe37fd6c05af40ce375a54762 |
|
MD5 | 3134e7b51951677ba6185bf843545a5c |
|
BLAKE2b-256 | 8e11c136658adbb65f760544865bbfae2660d60246c3222020f3ea26f01d6e58 |
File details
Details for the file aiosnmp-0.6.0-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 485.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8bb2a9747e0a9d04b8d24694907184d68b92a687576650fd1e6cc19b58777fb |
|
MD5 | dd5c0a57124a492f09e0d6fefa9e7d67 |
|
BLAKE2b-256 | fcaae5a3e4e34a81f735ad622179609b308a2ceeb41fa666686cbb2b8d2b977a |
File details
Details for the file aiosnmp-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b48604ff6648f974172c8605df380da9e7302410b6910a5c2702047ac918e98 |
|
MD5 | 74e0da89b16c87785ec6075df85f5554 |
|
BLAKE2b-256 | 376c1853000131e468a12ca870cd7b07a7e4e71acb03c21acb76ee852bf5f818 |
File details
Details for the file aiosnmp-0.6.0-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 619.6 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f2f9ab7703aa28e1602fcc36489027c83671343281dc3090d5af181bfefe6f |
|
MD5 | 2388157f997cc5c5b9037f0c93a6e870 |
|
BLAKE2b-256 | 093c039f88cc72ac5fc6baab5d3c5f2b336a733af3eef21abf4e7936a8c1f134 |
File details
Details for the file aiosnmp-0.6.0-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 486.1 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165357214e3f107e7d30f59392b3ea92164fabed8813b0bab487d6f2135d40a2 |
|
MD5 | 1106d3785a40ce472ef7a4a92e8cba14 |
|
BLAKE2b-256 | 6c4215257db8614d75c0ae25dcc4ecea2d040a37ad4e4d24994fc440bd82173d |
File details
Details for the file aiosnmp-0.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.3 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 678f848669b44af3b0251fcb91fa27692fe21f153dcbfed541e2b7e510fa723e |
|
MD5 | c155b5eb0cfbc7fdec3ee22dbaf5316e |
|
BLAKE2b-256 | 877ec55ddaf804ed93b2db6fa367e67d0c5ce27c8de49036c6b3bd5c4ae019b2 |
File details
Details for the file aiosnmp-0.6.0-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: aiosnmp-0.6.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 619.6 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3ce39f45c0222e53db1238e829bfe29e2fb45b5e4608107115fa1b8b2e8ec93 |
|
MD5 | 522db8e60fd68a4e4d5ab5c7094c0237 |
|
BLAKE2b-256 | bff616818174121819a7c07fe08186e085b0efbc68513cef4e28cbcbff3feec8 |