Python wrapper for the Teltonika API.
Project description
Pytonika
Pytonika is a lightweight Python client library to interact with Teltonika Networks devices via their Web API. It provides simple device abstractions and grouped endpoint interfaces to make automation and scripting straightforward.
- Lightweight, synchronous HTTP client built on top of httpx.
- Device wrappers for routers, gateways, access points and switches.
[!IMPORTANT] Pytonika is not an official Teltonika library. This project is maintained by the community and is not affiliated with or endorsed by Teltonika Networks.
Installation
Requirements
- Python 3.10+
- httpx >= 0.28.1
Install from PyPI
pip install pytonika
Basic usage
>>> from pytonika import Router
>>> router = Router("http://192.168.1.1/")
>>> router.authentication.login("admin", "admin01")
{'success': 'boolean', 'data': {'username': 'string', 'group': 'string', 'token': 'string', 'expires': 'integer'}}
>>> router.authentication.get_session_status()
{'success': 'boolean', 'data': {'active': 'boolean'}}
>>> router.authentication.logout()
{'success': 'boolean', 'data': {'response': 'string'}}
Contribute
If you want to contribute with Pytonika check out the Contributing guidelines.
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
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 pytonika-0.2.0.tar.gz.
File metadata
- Download URL: pytonika-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b06230a5402a1dd22c77ee72114af2bc8c5fc25403b26853c2a5c7761a545b3
|
|
| MD5 |
097ad987ca31cb712a3c0521cd9813c1
|
|
| BLAKE2b-256 |
6acb1f919aa0f601c702aafe079b86d03f645b04590b7e744de083137bd37ece
|
File details
Details for the file pytonika-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pytonika-0.2.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c3a38d811d385910a91b409e4ded7a4bbc4edcb81cc80cde03cb92a424528d4
|
|
| MD5 |
3b9de0a98b380218f89db73b02ca9791
|
|
| BLAKE2b-256 |
b7d26e8ae7e942385bcf9210dddb764a79ec2dedff76c1a53893bdf63c801946
|