Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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


  • documentation
  • 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.

Files for aiosnmp, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size aiosnmp-0.4.0-py3-none-any.whl (15.6 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page