Skip to content

ikergcalvino/pytonika

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

MIT License

About

The Teltonika API, pythonized.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages