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
- Clone the repo
- Ensure you have python 3 installed
python3 -Vorpython -V - Uses poetry for venv control
pip3 install poetry poetry config virtualenvs.in-project truecreate the venvs in the project folderpoetry installpoetry shell- To run tests, ensure there is a file called
router_pwdin the root directory with the router password in. - Then run
pytest -sto see responses, assumes the router is at192.168.0.1 - Set token with
poetry config pypi-token.pypi TOKEN - publish with
poetry publish
Todo list:
- Decide on useful endpoints to expose - see https://github.com/HarvsG/ha-glinet-integration#todo
- Expose said endpoints
- Write remaining
- Package correctly
- Test that dev enviroment is re-producable
- Publish on pip
- Static typing
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5b9342f9aca49ff678fe62be919c3262bd1381d7308261d570bd7d20524d25e
|
|
| MD5 |
99ad656570e973cde453dc04ef277efd
|
|
| BLAKE2b-256 |
282940c9165634bd64ba01864a929021bbd6e33ca52501eba6b2c6946ba7303b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c6cffff72454b89f1e7b68a2c72a2d47165685cd23a6084c83420f2674e055a
|
|
| MD5 |
a173b01b8b9f91257c6966a76a775639
|
|
| BLAKE2b-256 |
728c26bd1f064d174fb727435583b7ac294ad0ad5a37feddc8ce272420b63de6
|