Skip to main content

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

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytonika-0.2.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytonika-0.2.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

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

Hashes for pytonika-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b06230a5402a1dd22c77ee72114af2bc8c5fc25403b26853c2a5c7761a545b3
MD5 097ad987ca31cb712a3c0521cd9813c1
BLAKE2b-256 6acb1f919aa0f601c702aafe079b86d03f645b04590b7e744de083137bd37ece

See more details on using hashes here.

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

Hashes for pytonika-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c3a38d811d385910a91b409e4ded7a4bbc4edcb81cc80cde03cb92a424528d4
MD5 3b9de0a98b380218f89db73b02ca9791
BLAKE2b-256 b7d26e8ae7e942385bcf9210dddb764a79ec2dedff76c1a53893bdf63c801946

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page