Skip to main content

A python 3 API wrapper for GL-inet routers for consumption by Home Assistant

Project description

gli4py

A aysnc python 3 API wrapper for GL-inet routers with version 4 firmware. [WIP]

GL-inet routers are built on OpenWRT. They are highly customizeable but have an attractive user interface.

As part of their modiification of the UI they provide a locally accessible API.

I thought it would be handy to develop a python 3 wrapper for the API for easy intergation into other services such as HomeAssistant

Installation

pip3 install gli-py

Dev setup

  1. Clone the repo
  2. Ensure you have python 3 installed python3 -V or python -V
  3. Uses poetry for venv control pip3 install poetry
  4. poetry config virtualenvs.in-project true create the venvs in the project folder
  5. poetry install
  6. poetry shell
  7. To run tests, ensure there is a file called router_pwd in the root directory with the router password in.
  8. Then run pytest -s to see responses, assumes the router is at 192.168.0.1
  9. Set token with poetry config pypi-token.pypi TOKEN
  10. publish with poetry publish

Todo list:

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

gli4py-0.0.1.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

gli4py-0.0.1-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file gli4py-0.0.1.tar.gz.

File metadata

  • Download URL: gli4py-0.0.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for gli4py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c5b9342f9aca49ff678fe62be919c3262bd1381d7308261d570bd7d20524d25e
MD5 99ad656570e973cde453dc04ef277efd
BLAKE2b-256 282940c9165634bd64ba01864a929021bbd6e33ca52501eba6b2c6946ba7303b

See more details on using hashes here.

File details

Details for the file gli4py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gli4py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2

File hashes

Hashes for gli4py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6cffff72454b89f1e7b68a2c72a2d47165685cd23a6084c83420f2674e055a
MD5 a173b01b8b9f91257c6966a76a775639
BLAKE2b-256 728c26bd1f064d174fb727435583b7ac294ad0ad5a37feddc8ce272420b63de6

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