Skip to main content

asyncio SNMP client

Project description

# aiosnmp
[![Build Status](https://travis-ci.com/hh-h/aiosnmp.svg?branch=master)](https://travis-ci.com/hh-h/aiosnmp)
[![PyPI version](https://badge.fury.io/py/aiosnmp.svg)](https://badge.fury.io/py/aiosnmp)
[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://img.shields.io/badge/license-MIT-brightgreen.svg)
[![Python version](https://img.shields.io/badge/python-3.6%2B-brightgreen.svg)](https://img.shields.io/badge/python-3.6%2B-brightgreen.svg)

aiosnmp is an asynchronous SNMP client for use with asyncio.

## Installation
```shell
pip install asyncpg
```

## Notice
Only snmp v2c supported, no v3 support

## Basic Usage
```python
import asyncio
import aiosnmp

async def main():
snmp = aiosnmp.Snmp(host="127.0.0.1", port=161, community="public")

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 [**/examples**](https://github.com/hh-h/aiosnmp/tree/master/aiosnmp)

## 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 Distribution

aiosnmp-0.1.0.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

aiosnmp-0.1.0-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

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