Skip to main content

asyncio SNMP client

Project description

Build Status Code Coverage PyPI version License Code Style Python version

aiosnmp is an asynchronous SNMP client for use with asyncio.

Notice on 0.6.0 build

If you have some problems with 0.6.0 build, please, create an issue and downgrade to 0.5.0.
There is no difference between 0.5.0 and 0.6.0 only asn1 parser migrated to rust.

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

Project details


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.7.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distributions

aiosnmp-0.7.0-cp310-cp310-win_amd64.whl (490.3 kB view details)

Uploaded CPython 3.10 Windows x86-64

aiosnmp-0.7.0-cp310-cp310-musllinux_1_1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

aiosnmp-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

aiosnmp-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl (632.8 kB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

aiosnmp-0.7.0-cp39-cp39-win_amd64.whl (490.5 kB view details)

Uploaded CPython 3.9 Windows x86-64

aiosnmp-0.7.0-cp39-cp39-musllinux_1_1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

aiosnmp-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

aiosnmp-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl (632.8 kB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

aiosnmp-0.7.0-cp38-cp38-win_amd64.whl (490.9 kB view details)

Uploaded CPython 3.8 Windows x86-64

aiosnmp-0.7.0-cp38-cp38-musllinux_1_1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

aiosnmp-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

aiosnmp-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl (632.8 kB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

aiosnmp-0.7.0-cp37-cp37m-win_amd64.whl (491.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

aiosnmp-0.7.0-cp37-cp37m-musllinux_1_1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

aiosnmp-0.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

aiosnmp-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl (632.8 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

File details

Details for the file aiosnmp-0.7.0.tar.gz.

File metadata

  • Download URL: aiosnmp-0.7.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8fd7f1a85ee7f054c5ff585f5114aeba742d2acdbf9ac89db97e70dd64ce2e7b
MD5 1460b710d18f40e39b708dcd84d0219c
BLAKE2b-256 d7a7fed447797d16d008e288b41618dc94361c6fb078a51f658a938dfd5d024d

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 490.3 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a9a610fa8f9797b95896005cb7844ff2b27ca008e24c38c575da31d2ddff4c7a
MD5 f46a8b64dda240c471251da38fdf1c07
BLAKE2b-256 d4ed872c693189aac21e87df566d676f55a65e30916091160f2cd0448bfea14b

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp310-cp310-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.10, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 b6cfda054ee6b2f5a4c0f0ad82bd631aea6a5f9be3e53330588109473ec10afb
MD5 15d80e2124f846c20c6705cea9753d39
BLAKE2b-256 ecf3ab30fc064d053b222ff634d718985279d8ac177bc40447721bd1c548c343

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aiosnmp-0.7.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 795da85da17befc7014b9974debd8cb3f85dda579120328c907e12d160d277b8
MD5 47fa46a2b8a2a24dd87791753dfa596e
BLAKE2b-256 c6732159b6ea4258f50c29ede7bd814da1968bf6eba621997d5218fc65f91f10

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 632.8 kB
  • Tags: CPython 3.10, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a475e94c8e2f5d03ed82bfef0a92342237764ae09d798e2cc48c07fadf6f2a1f
MD5 8ff8a4d7e6d7c6bcc6cd4682511fdcfb
BLAKE2b-256 91395b7c903f509c4633fffd07c53d9e3c1f4bb432e386ecdcef8d733aa9a9e2

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 490.5 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2129956b932fee793edeb741592453bb040718a658b403f5058675bf5e37b87
MD5 4a1bf9f72e0be9059681fcafed883e94
BLAKE2b-256 998721cf96067bd0e43f8dc0583bb0e6df933a0660534466af64b1bfc8df5c38

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp39-cp39-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.9, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4b8fbe68e7f1e9a5ae2fcce8fc34093f2536666db056f5d8cfef26bbe98691db
MD5 57d1adbd9ae9b9484197c87f98a5f88f
BLAKE2b-256 3a67719f3002a6c3327a7a08855a00c0c642cc81449b00631950523cc1b23e8f

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aiosnmp-0.7.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6fefc4997670e03d45aa1116e3e92c6a783d8b167defdcc67a6f520394860f2f
MD5 3a691b16e88e3f76c936493852471409
BLAKE2b-256 3d2408d0001e7f605bef18ef67ed9c2c3439833fc555c37ad6c64a58a030e4b2

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 632.8 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e0541a173281f2a292536729d8416e6cff6979e8a0f305e967029c3ded80fef8
MD5 78beaaecf48f916c5c7896f897a196b2
BLAKE2b-256 63f24ac4e2aa8a2fbb5c4b274d365426384f7be83730a8725734a467a3b5ad21

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 490.9 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b497803df22d3d30f0eead15ef8a4af836f8ebfb3eae958515fa09f871dcf97d
MD5 3735e1be35dbd6265c8fe52a22a216e0
BLAKE2b-256 dc20671b39322893d912f113892bfa9f5dd82e902bf59cb4de76a9fa5d89e030

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp38-cp38-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.8, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f18d01dca06e658d29e960b530a18b6fcdc0f19b7b7be6a3a5092652dc8c2f2a
MD5 c20b37896f882f23a90ef5ca402e9e8f
BLAKE2b-256 b7572cd54905efd8f600322f15c87676915b0fadba26e49b3ad7bef60592220e

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aiosnmp-0.7.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 050117af402fcbda2c84cf45ed114f4d7e96f23dd5ec61bfe18116423e67517a
MD5 06d05c0c8f7526419b12515426ffa9dc
BLAKE2b-256 204ef5ece80b17b023397932f9bcfb0f76e2ec5e9e900f27f1496f0072b764bf

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 632.8 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f9ff15d27d4d6a52e876b3f038323c9020004728713face9f828dbe0bab56bcc
MD5 3b9518bdf66b8da6978fc3a426ee52c2
BLAKE2b-256 71904890a98d9902a89c5036d78032f1bc6445ec4494e5da64808a968540c9a2

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 491.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 29e444a4661051b91b72fc7d7340e38510a52f41c5ac84163fe79e4e01b329c1
MD5 05a55f6dd3a2403b4e34ad27785c7d25
BLAKE2b-256 a4dbf9949636e2bfa1f7e2130c3725d2bba50ca1cf1d116d8df78d3ec8b3f567

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp37-cp37m-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp37-cp37m-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.7m, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 4bcbcae741b7ffcc874b5f0aa85a832ca5f1b44135c7a946ec2f87742481a58f
MD5 6832f679f1d4b9662d20657222c00a0d
BLAKE2b-256 2d567da1b71dfc4ca98a3ec0df0ba608277336ddbeab6ba883bc033c74edd0a7

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for aiosnmp-0.7.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a32ce911c8b3524616e6ae854d77b332b4f61b6e331c4643f3debdeac8783312
MD5 c629dffbd5a42447b39cc1e8486d2edd
BLAKE2b-256 8d2eb3d16e07a267802a1cba0d9a196e14d3bbed52a40d0dbb7c93c61429a90c

See more details on using hashes here.

File details

Details for the file aiosnmp-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: aiosnmp-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 632.8 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for aiosnmp-0.7.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 de7ba34d70be1b976d654bfde5fa39863790df4cdde54b52e68c1aeb734bdb59
MD5 5403a368cebd98aae1b2dc6aca1d17f8
BLAKE2b-256 a4e1b9747d34937857a3cb53abea84d2b75c9ea6b304ebd4e3acdd8433193620

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page