SNMP Python Library
Project description
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:
pip install snmp_py_lite
Or cloning from the repository:
git clone https://github.com/katzeNilpferd/SnmpPyLite.git
cd SnmpPyLite
python setup.py install
рџљЂ Usage
Example of use for performing the GET operation:
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:
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
INTEGEROCTET STRINGNULLOIDIp AddressCounterGaugeTimeTicks
рџ“ќ 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snmp_py_lite-0.1.0.tar.gz.
File metadata
- Download URL: snmp_py_lite-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5083764e332742335cbbd56e10669aeb29c323ffe501838162987f689b67bb9
|
|
| MD5 |
43a06227831729ddc05377d78e938cbf
|
|
| BLAKE2b-256 |
227f27fbd21bdbf4cc3ce06ed33a8d2f4fcab823b0610bdcec6a131cb6833b2a
|
File details
Details for the file snmp_py_lite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snmp_py_lite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5661158138ec74dc3230665108a91aa0093d6af4ce5440db16ae43b4d6faa3b4
|
|
| MD5 |
7ee111410dbe3d75f183f6c6e1dc2574
|
|
| BLAKE2b-256 |
cf8baaac26878f8f429f15f6e3cdd5faef9de3a0df2e7fd02bba5ddb17b2c388
|