Skip to main content

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

  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:

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)

Source distribution for gli-py 0.0.18
File Size Uploaded
gli_py-0.0.18.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gli-py 0.0.18
File Interpreter ABI Platform
gli_py-0.0.18-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.18 This release

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

1 release file

0.0.12

2 release files

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page