Alga
A command line utility for controlling a LG webOS TV over the network.
Installing
Alga is available on PyPI. I would recommend installing it via pipx:
$ pipx install alga
Or, via Nix flakes:
nix run github:Tenzer/alga
Setup
The first time you use the utility, you will need to setup a connection to the TV.
With the TV on, run alga tv add <identifier> [hostname/IP].
This will bring up a prompt on the TV asking if you want to accept the pairing.
When accepted, Alga will be ready to use.
If no hostname or IP address is provided to alga tv add, it will be default try to connect to "lgwebostv" which should work.
The hostname, a key and MAC address will be written to ~/.config/alga/config.json for future use.
Usage
See usage for a list of available commands.
Development
The code base is fully type annotated and test coverage is being enforced.
Types can be checked via uv run ty check . and tests via uv run pytest.
Tests are run for each of the supported Python versions in CI.
pre-commit/prek is used to run Ruff for linting and formatting.
usage.md is updated via uv run ./generate-usage.sh.
Metadata
Release files for alga 2.3.0
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 |
|---|---|---|---|---|
| alga-2.3.0.tar.gz | 44.4 kB | With provenance | Details for alga-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| alga-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for alga-2.3.0-py3-none-any.whl |
Total release size: 58.8 kB
Release files / alga-2.3.0.tar.gz
| Download URL | alga-2.3.0.tar.gz |
|---|---|
| Size | 44.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f67db5af1620dcfd191834a87f5c0874dfe2912a7678ecbfdae6393f4c712ed3
|
|
BLAKE2b-256 checksum How to use checksums |
aca06aaceaecfd3a6b8a9c3c999eb604d11933292887ac734d0bb6f383d2fb78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / alga-2.3.0-py3-none-any.whl
| Download URL | alga-2.3.0-py3-none-any.whl |
|---|---|
| Size | 14.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90768875e24f129144dbb3941692ff35bd4992ecf9193ba00f849b76d19c5f8d
|
|
BLAKE2b-256 checksum How to use checksums |
40bf28076300b2256c2ce81f02e8f1318e804bd09123fadfbf99048f71f0c488
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logSecurity for alga 2.3.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for alga-2.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logA 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.