Skip to main content

CLI for remote controlling LG webOS TVs

Project description

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 mypy . and tests via uv run pytest.

Tests are run for each of the supported Python versions in CI.

pre-commit used to run Ruff for linting and formatting.

usage.md is updated via uv run ./generate-usage.sh.

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

alga-2.2.0.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alga-2.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file alga-2.2.0.tar.gz.

File metadata

  • Download URL: alga-2.2.0.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alga-2.2.0.tar.gz
Algorithm Hash digest
SHA256 c7d4c292651239c2f878f12eb90a55af83e373bcb94f69be7f710309b041c06c
MD5 56dc6e0e728d1f2cca92662f17fd540a
BLAKE2b-256 6819e4adf02515ad185dc6424b61c115b7c99a9170b9c3aa5c3b3cbca3113a9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for alga-2.2.0.tar.gz:

Publisher: release-to-pypi.yml on Tenzer/alga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file alga-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: alga-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for alga-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 030a461965a1e0c539561118197086b1619a7008f365f6775c79d992e3eabc38
MD5 31f87d66b29bcdef5c723dbd906c6532
BLAKE2b-256 5731ca7e335b20376f894131734593e4dc60d8746afb2456c50078ea1c32aa7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for alga-2.2.0-py3-none-any.whl:

Publisher: release-to-pypi.yml on Tenzer/alga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page