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.


pip install aiosnmp



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="", port=161, community="public") as snmp:
        for res in await snmp.get("."):
            print(res.oid, res.value)

more in /examples


  • snmp v3 support

  • more tests


aiosnmp is developed and distributed under the MIT license.

Run local tests

pip install -r requirements-dev.txt

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

Uploaded source

Built Distributions

aiosnmp-0.7.2-cp311-cp311-win_amd64.whl (499.3 kB view hashes)

Uploaded cp311

aiosnmp-0.7.2-cp310-cp310-win_amd64.whl (499.3 kB view hashes)

Uploaded cp310

aiosnmp-0.7.2-cp39-cp39-win_amd64.whl (499.7 kB view hashes)

Uploaded cp39

aiosnmp-0.7.2-cp38-cp38-win_amd64.whl (500.0 kB view hashes)

Uploaded cp38

aiosnmp-0.7.2-cp37-cp37m-win_amd64.whl (500.0 kB view hashes)

Uploaded cp37

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