Skip to main content

aiosnmp

Build Status Code Coverage PyPI version License Code Style Python version

aiosnmp is an asynchronous SNMP client for use with asyncio.

Installation

pip install aiosnmp

Documentation

https://aiosnmp.readthedocs.io/en/latest/api.html

Notice

Only snmp v2c supported, v3 version is not supported
Oids should be like .1.3.6... or 1.3.6.... iso.3.6... is not supported

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

Metadata

Release files for aiosnmp 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aiosnmp 0.7.2
File Size Uploaded
aiosnmp-0.7.2.tar.gz 16.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for aiosnmp 0.7.2
File
aiosnmp-0.7.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
aiosnmp-0.7.2-cp311-cp311-musllinux_1_1_x86_64.whl CPython 3.11 CPython 3.11 Linux musl 1.1+ x86-64 Details
aiosnmp-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
aiosnmp-0.7.2-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details
aiosnmp-0.7.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
aiosnmp-0.7.2-cp310-cp310-musllinux_1_1_x86_64.whl CPython 3.10 CPython 3.10 Linux musl 1.1+ x86-64 Details
aiosnmp-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
aiosnmp-0.7.2-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details
aiosnmp-0.7.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
aiosnmp-0.7.2-cp39-cp39-musllinux_1_1_x86_64.whl CPython 3.9 CPython 3.9 Linux musl 1.1+ x86-64 Details
aiosnmp-0.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
aiosnmp-0.7.2-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details
aiosnmp-0.7.2-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
aiosnmp-0.7.2-cp38-cp38-musllinux_1_1_x86_64.whl CPython 3.8 CPython 3.8 Linux musl 1.1+ x86-64 Details
aiosnmp-0.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
aiosnmp-0.7.2-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details
aiosnmp-0.7.2-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
aiosnmp-0.7.2-cp37-cp37m-musllinux_1_1_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux musl 1.1+ x86-64 Details
aiosnmp-0.7.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
aiosnmp-0.7.2-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details

Total release size: 21.2 MB

Release files / aiosnmp-0.7.2.tar.gz

Download URL aiosnmp-0.7.2.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
992bf00df0c289b3d4ed8f3d9fe910e1332f4fa6e8b7f7c06111b43cabe29f77
BLAKE2b-256 checksum
How to use checksums
d554c38bc520e7eb75f91ad76d1b7e17e23145d34f18e6059a1eac228f33e2dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp311-cp311-win_amd64.whl

Download URL aiosnmp-0.7.2-cp311-cp311-win_amd64.whl
Size 499.3 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
22e520778053c3da1d14c0cb430988529d17f8339e9d808546c71d4ab431dbbe
BLAKE2b-256 checksum
How to use checksums
4f00cbbde20e6b9a57cb13daf9568ebc3e89aa6a809dae27fdc3f330caa0215f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp311-cp311-musllinux_1_1_x86_64.whl

Download URL aiosnmp-0.7.2-cp311-cp311-musllinux_1_1_x86_64.whl
Size 1.6 MB
Tags CPython 3.11 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
0b73fec727cffae1329787b8ce9de18fdcfc9a53f9799f3db1b7ca95750c8c72
BLAKE2b-256 checksum
How to use checksums
4954a5fe04277c028ba0b01023878131787f4be7f96cce4dea7031d6f600c67a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aiosnmp-0.7.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1631bf0e987c5051d3b8607eaf35d76cde20bd94f15d80ec2cfe6706e2e82590
BLAKE2b-256 checksum
How to use checksums
4e43616021d232721ef66e0813d1da5dd2de4a34b77febba30e0e0bc59e03e3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp311-cp311-macosx_10_9_x86_64.whl

Download URL aiosnmp-0.7.2-cp311-cp311-macosx_10_9_x86_64.whl
Size 644.6 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
719cd6ab1c10f2060ff4d77948be566dfc7a5b1c8fa8a2b02374c9b509fbf6e4
BLAKE2b-256 checksum
How to use checksums
975f65b202622b5270f5354c2fe5d01710eb1ec4f6562a18f3126eb28bf9ddfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp310-cp310-win_amd64.whl

Download URL aiosnmp-0.7.2-cp310-cp310-win_amd64.whl
Size 499.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
6d9bd1002508e00cc0166eaf95432c187e1b6bca81fc3720c929accc2420d718
BLAKE2b-256 checksum
How to use checksums
60fb61c52b60b9f6391501a5383acd60bce0475d236092b340396658437f1808
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp310-cp310-musllinux_1_1_x86_64.whl

Download URL aiosnmp-0.7.2-cp310-cp310-musllinux_1_1_x86_64.whl
Size 1.6 MB
Tags CPython 3.10 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
ba65718a1f306915dbbbe5e971d2330574cd02686d176332678f254a6ce5783e
BLAKE2b-256 checksum
How to use checksums
dc5fe1a83655bd2ecf2c2e0a661b731e2875c15f0fd77163622284fff5fefebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aiosnmp-0.7.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
370e459ffee72e8c97436bc0bec4aac87f469b41e97905d06ada653ab6d55fcc
BLAKE2b-256 checksum
How to use checksums
201e698d04f106f94e5359d18540534ccaee89994590d283e92df1e0ffb55a18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp310-cp310-macosx_10_9_x86_64.whl

Download URL aiosnmp-0.7.2-cp310-cp310-macosx_10_9_x86_64.whl
Size 644.6 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
924dac27400f5fe58c3d05fa7f118aadb676f1a0a7b4c1ad741788e6cb629440
BLAKE2b-256 checksum
How to use checksums
9481f3def09017bf62c703de571380a928d165bbabb03609c53e830baf888c33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp39-cp39-win_amd64.whl

Download URL aiosnmp-0.7.2-cp39-cp39-win_amd64.whl
Size 499.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
77ad5a168cc574b77e46dbaa3860d95a3e2c796dc61327ffb4dd3e494835d92f
BLAKE2b-256 checksum
How to use checksums
6037c3206d286cbe31ced0b37c9dc99daa53d06d3c3601432099e599396d0507
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp39-cp39-musllinux_1_1_x86_64.whl

Download URL aiosnmp-0.7.2-cp39-cp39-musllinux_1_1_x86_64.whl
Size 1.6 MB
Tags CPython 3.9 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
d0f7ed864d65c7ac725288a26dbba8f0af8c5e00302a88cdcd95e773a95cba64
BLAKE2b-256 checksum
How to use checksums
b30a1e74b947fe1cb74e1e22e20dcf3f59e4a7345145a581917c7ad4b44b56e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aiosnmp-0.7.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.5 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
329cc0fb34f56fd9fbf5126ec91ae803a22d4c9d768d258a42e3be65f88242b4
BLAKE2b-256 checksum
How to use checksums
c1e89d64a68ca6771b6027969a8c92ac85a57a8c9718b7fd3401e984c94dc2d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp39-cp39-macosx_10_9_x86_64.whl

Download URL aiosnmp-0.7.2-cp39-cp39-macosx_10_9_x86_64.whl
Size 644.8 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
633506c43023b714f944244147bdf4503ef0dc3b7b0da4f32a9170c67031ec56
BLAKE2b-256 checksum
How to use checksums
41c27592b707793e7c42798b3982c6cf892d0e1b21dedd0c3109fae732013b03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp38-cp38-win_amd64.whl

Download URL aiosnmp-0.7.2-cp38-cp38-win_amd64.whl
Size 500.0 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
10e8eb53b1b9c983922714b68a72423e02ba3a704254c2e21d6a03bc3397cb10
BLAKE2b-256 checksum
How to use checksums
3d497c14daf4408aa45242987096c536e0cb5d859f40f469d9657a95ddfd0253
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp38-cp38-musllinux_1_1_x86_64.whl

Download URL aiosnmp-0.7.2-cp38-cp38-musllinux_1_1_x86_64.whl
Size 1.6 MB
Tags CPython 3.8 Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
b4b6c80cd994eb2690e7ce9a4589fae76bee32f21c4656dd5d84e28dbb76f26c
BLAKE2b-256 checksum
How to use checksums
fdc23793e5dccdbd6d877ae401b628cc28e03af245d55eb34725d7bf6142da6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aiosnmp-0.7.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.5 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2256ac7110116b3787c4c5edac934ef542c2ad02193feba3bb5726ce69015b46
BLAKE2b-256 checksum
How to use checksums
8b8bf933a5f99dc330615dc37850470d0cd602d2884200737476e110c36ce467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp38-cp38-macosx_10_9_x86_64.whl

Download URL aiosnmp-0.7.2-cp38-cp38-macosx_10_9_x86_64.whl
Size 644.4 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
9c7f3f9dab15c12b83c3c5f3c3e8adb7caf4fe5e3c6f49a591953388390b324a
BLAKE2b-256 checksum
How to use checksums
f439a6f17fcb43486e5bd3e78e8469ed5ca6a55ca70a78ea0df7fde7642dc0a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp37-cp37m-win_amd64.whl

Download URL aiosnmp-0.7.2-cp37-cp37m-win_amd64.whl
Size 500.0 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
5e4a4080353572cb25d031bc82ad178041eb897f0850f98757bd012f537b163c
BLAKE2b-256 checksum
How to use checksums
341e7acdf5aaae2eaa388b8bfbb468d01df72068fd05062d3ffef7416685f7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp37-cp37m-musllinux_1_1_x86_64.whl

Download URL aiosnmp-0.7.2-cp37-cp37m-musllinux_1_1_x86_64.whl
Size 1.6 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux musl 1.1+ x86-64
SHA-256 checksum
How to use checksums
b155e2d251145b4be8a311dd435c2fbe6cb1adc22e1d9613933af27637449f1a
BLAKE2b-256 checksum
How to use checksums
47f899cf357141ec7074714c958a11c44d4b642979ad34f7ad6ceb92a6dab071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL aiosnmp-0.7.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.5 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
780c16829b395db0eb51cf058fa71cc44eb9961ea0d0431307e263e47b157361
BLAKE2b-256 checksum
How to use checksums
85c1865d5330083685f49d60525e1c1d250d16bc7c428dd6b1b14ef15e40d5cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release files / aiosnmp-0.7.2-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL aiosnmp-0.7.2-cp37-cp37m-macosx_10_9_x86_64.whl
Size 645.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
bda40e069230ea3f83a8c5b0e40d58b670f88548f82ab0cefe923e9e84822e58
BLAKE2b-256 checksum
How to use checksums
0c50ebaeaf4a9ca88e0fe4ac14e09b697b33d8cd16b744b93329604df828f032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.7.2 This release

21 release files

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.4

1 release file

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page