gli_py
A aysnc python 3 API wrapper for GL-inet routers. [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
Metadata
Release files for gli-py 0.0.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gli_py-0.0.18.tar.gz | 16.9 kB | Without provenance | Details for gli_py-0.0.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gli_py-0.0.18-py3-none-any.whl | Python 3 | none | any | Details for gli_py-0.0.18-py3-none-any.whl |
Total release size: 34.7 kB
Release files / gli_py-0.0.18.tar.gz
| Download URL | gli_py-0.0.18.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc50d22b1c8120f632519d990c7fa46014ca2a3ac04d8f6fb5903e7a56df0960
|
|
BLAKE2b-256 checksum How to use checksums |
45f77f0a1c87e3b86483b9a7c4e677ed7e298aa962d96f46fbf7c51e407e789e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2
|
Release files / gli_py-0.0.18-py3-none-any.whl
| Download URL | gli_py-0.0.18-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51e90f626bbbe5a52c7cc68a4dad3cb9d7bd7b947d331c18140ae0e46b6e5a85
|
|
BLAKE2b-256 checksum How to use checksums |
b8458843d7d5a589f1e935b0be69f296e4e109494d044c49f5996e5bfaba45e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.8.10 Linux/5.15.90.1-microsoft-standard-WSL2
|
Security for gli-py 0.0.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.