Metadata-Version: 2.1
Name: snmp_py_lite
Version: 0.1.0
Summary: SNMP Python Library
Home-page: https://github.com/katzeNilpferd/SnmpPyLite
Author: Evgeny Ockatiev
Author-email: evgeny.ockatiev@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Requires-Dist: flake8; extra == "dev"

# SnmpPyLite

**SnmpPyLite** вЂ” is a lightweight client for working with the SNMP protocol in Python, supporting the operations `GET`, `GET-NEXT`, `GET-BULK`, `GET-WALK` Рё `SET`.

## рџ“¦ Installation

Using `pip`:
```bash
pip install snmp_py_lite
```

Or cloning from the repository:
```bash
git clone https://github.com/katzeNilpferd/SnmpPyLite.git
cd SnmpPyLite
python setup.py install
```

## рџљЂ Usage

Example of use for performing the `GET` operation:
```bash
from snmp_py_lite.client import SNMPClient

client = SNMPClient(ip="192.168.126.10", community="public", version='1')
response = client.get("1.3.6.1.2.1.1.1.0")
print(response)
```

Example of the `SET` operation:
```bash
value = "New Device Name"
client.set("1.3.6.1.2.1.1.5.0", value, "STRING")
```

## рџЊђ Supported versions of the SNMP

- `1` вЂ” initial version of the protocol.
- `2c` вЂ” includes improvements in performance, security, privacy and communication between managers compared to the previous version.

## рџ“љ Supported operations

- `GET` вЂ” getting the value by OID.
- `GET-NEXT` вЂ” getting the next value by OID.
- `GET-BULK` вЂ” mass receipt of values (SNMPv2c).
- `GET-WALK` вЂ” recursively retrieving values in the table (iterating over the OID).
- `SET` вЂ” changing the value by OID.

## рџ› пёЏ Supported data types

- `INTEGER`
- `OCTET STRING`
- `NULL`
- `OID`
- `Ip Address`
- `Counter`
- `Gauge`
- `TimeTicks`

## рџ“ќ License

This project is licensed under the MIT license. For details, see the LICENSE file.

## рџ¤ќ Contribution

Your contribution is welcome! If you want to improve the project, create a fork, make changes and send a Pull Request.

    1. Make a fork of the repository
    2. Create a new branch (`git checkout -b feature/your_feature`)
    3. Commit the changes (`git commit -m "Added a new feature"`)
    4. Start the branch (`git push origin feature/your_feature`)
    5. Open the Pull Request

## рџ“ћ Contacts

- Email: evgeny.ockatiev@gmail.com
