Local capture launcher + registry for GL.iNet device API profiles.
Project description
glinet-profiler
A small local web launcher that captures a GL.iNet router's API surface (read-only), sanitizes it into a shareable profile, checks whether that device + firmware is already in the registry, and lets you download it or open a prefilled submission.
Your password never leaves your machine: it goes from your browser to a
local server (127.0.0.1) to your own router. Nothing is uploaded unless you
deliberately submit.
Why a local launcher and not a public site? GL.iNet's RPC sends no CORS headers, so a public browser page cannot talk to your local router. The enumeration therefore runs server-side in this launcher (native Python, which is not subject to CORS), and the UI is served locally.
Quick start
Once published you'll be able to run it with no install:
uvx glinet-profiler
From a source checkout:
uv run glinet-profiler # starts the launcher, opens your browser
uv run glinet-profiler --no-browser --port 8765
Then enter your router URL (e.g. http://192.168.8.1), username (root), and
password, and click Capture. You'll get a sanitized profile, a
"already-known / new" banner, and Download / Submit actions.
What's in the profile (and what isn't)
The published profile keeps only the device model + firmware and the
per-method API shape (status, risk, whether the gli4py
client wraps it, params, schema). It drops device identifiers (mac, sn,
sn_bak) and all response values — the raw report never leaves the local
capture() step.
Enumeration is strictly read-only (a built-in catalog tier, plus an optional SSH read tier if you tick the box and have SSH access).
Security
- The launcher binds
127.0.0.1only and guards its API with a per-run session token plus a localhost host check (so no other web page can drive it). - The password is used only to log into your router from the local process and is never persisted, logged, or sent anywhere remote.
How it fits with gli4py and the registry
This package is the capture launcher only. The enumeration engine lives
inside it (glinet_profiler/enumerator/, originally developed in the gli4py
project) — there is no runtime dependency on gli4py (deps are just
aiohttp, paramiko, libpass).
- gli4py — the typed GL.iNet Python client library. Each captured profile records, per method, whether the gli4py client already wraps it ("coverage") — a lens for Python developers.
- glinet-registry — the public, community registry of device profiles (browse site + submission bot). The launcher fetches its manifest to tell you whether a device is already known, and Submit opens its issue form. It releases independently of this package.
Development
uv sync --all-extras --dev
uv run pytest -q
uv run ruff check . && uv run mypy src && uv run pylint $(git ls-files '*.py')
The three repos
- glinet-profiler (this repo) — the capture launcher + enumeration engine.
- glinet-registry — the device-profile data, browse site, and submission bot.
- gli4py — the GL.iNet Python client library (the "coverage" lens shown in each profile).
License
GPL-3.0-or-later.
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
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 glinet_profiler-0.1.0.tar.gz.
File metadata
- Download URL: glinet_profiler-0.1.0.tar.gz
- Upload date:
- Size: 196.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e681c6372e05a5d23207f77cdf20aa2ef042d3fe69b558c08080ed49190d0df
|
|
| MD5 |
7c80466bc115e9adc9b2f344a897d36a
|
|
| BLAKE2b-256 |
44db770db4bf0ac76b5f47371aba928fc56499ef8c0a864e889968c6ecd2d529
|
Provenance
The following attestation bundles were made for glinet_profiler-0.1.0.tar.gz:
Publisher:
release.yml on shauneccles/glinet-profiler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glinet_profiler-0.1.0.tar.gz -
Subject digest:
9e681c6372e05a5d23207f77cdf20aa2ef042d3fe69b558c08080ed49190d0df - Sigstore transparency entry: 1992577649
- Sigstore integration time:
-
Permalink:
shauneccles/glinet-profiler@4c4d6180dfba5b10e437b0f0293f13817674ba28 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shauneccles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c4d6180dfba5b10e437b0f0293f13817674ba28 -
Trigger Event:
push
-
Statement type:
File details
Details for the file glinet_profiler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: glinet_profiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ff2cbe3969c3b23de52aface1751840697e54061b3ea0372270f036830637d7
|
|
| MD5 |
3ff54d29054280d402b71906a6acaba5
|
|
| BLAKE2b-256 |
5e2fb5d49899c5fa1c547222f75210f059f587676bea41158b6171afc706543e
|
Provenance
The following attestation bundles were made for glinet_profiler-0.1.0-py3-none-any.whl:
Publisher:
release.yml on shauneccles/glinet-profiler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
glinet_profiler-0.1.0-py3-none-any.whl -
Subject digest:
1ff2cbe3969c3b23de52aface1751840697e54061b3ea0372270f036830637d7 - Sigstore transparency entry: 1992577824
- Sigstore integration time:
-
Permalink:
shauneccles/glinet-profiler@4c4d6180dfba5b10e437b0f0293f13817674ba28 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/shauneccles
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4c4d6180dfba5b10e437b0f0293f13817674ba28 -
Trigger Event:
push
-
Statement type: