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.
[![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
Release history Release notifications | RSS feed
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 details)
Built Distribution
aiosnmp-0.1.0-py3-none-any.whl
(14.3 kB
view details)
File details
Details for the file aiosnmp-0.1.0.tar.gz
.
File metadata
- Download URL: aiosnmp-0.1.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f7f633d9fc872d49362a7cf5deef9920c1721459013083db8bc54ad794ff3d7 |
|
MD5 | d3f459dd5e5d3a88b1a2c617aaada31d |
|
BLAKE2b-256 | 9b306e5cf309aa176584ae6fa1c8441558a42d9b1ca64e61d5888e5bc63999af |
File details
Details for the file aiosnmp-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: aiosnmp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95512d36d2dcc891aa89cb1aa00574b30e18bd772aeb2f05a4275fc849ba2240 |
|
MD5 | fd6470f6b37e9bc6d8cdc9208746c5dc |
|
BLAKE2b-256 | 9c2507fe24d7264290aacffa5cf13e11cd62209dbdb50e9b68cd367b4cb7bd6e |