Skip to main content

asyncio SNMP client

Project description

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

Notice

Only snmp v2c supported, no v3 support

Basic Usage

import asyncio
import aiosnmp

async def main():
    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)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

more in /examples

TODO

  • documentation
  • snmp v3 support
  • more tests

License

aiosnmp is developed and distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

aiosnmp-0.2.4-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file aiosnmp-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: aiosnmp-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for aiosnmp-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1b82ca2c9c518d28c97deef9badbe616b97881d3013f9d1f6650e949ed949c93
MD5 82bc76578151e214fdac0ccdec3f9f8d
BLAKE2b-256 c9531a8a22e24338c335e2e6957222b518cc67321496af959d18bdf46641b757

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