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.
- Python 3.10+
- httpx >= 0.28.1
pip install pytonika>>> 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'}}If you want to contribute with Pytonika check out the Contributing guidelines.