Skip to main content

This service exposes an API to contorl a broadlink IR remote device reachable over the network. It makes it possible to programmatically press an IR remote button, but also listen for and learn new buttons, and save button-press contents under memorable names.

To install:

$ pip install irremote

Connect to broadlink device at 10.0.0.12, then repeatedly prompt to listen and save new buttons:

$ irremote --ip 10.0.0.12 -L

These are persisted by default under ~/.config/ir-buttons/

List learned buttons:

$ irremote -l

Run the HTTP API service on the default port 2727 after connecting to the same broadlink device:

$ irremote --ip 10.0.0.12 $ irremote --ip 10.0.0.12 -p2727

Run as a client, pressing the button named LG_VOLUP:

$ irremote -b LG_VOLUP

or

curl http://localhost:2727/LG_VOLUP_UP

Press the LG_POWER button, followed by 10 presses of the LG_VOLUP button.

$ irremote -b LG_POWER,LG_VOLUPx10

Create a button called "TCL_BRIGHTNESS_UP" that consists of a comma-separated list of other button names.

echo "TCL_MENU,TCL_DOWN,TCL_RIGHT,TCL_RIGHT,TCL_UP,TCL_ENTER,TCL_DOWN,TCL_RIGHT,TCL_UP,TCL_ENTER,TCL_BACKx2" > ~/.config/ir-buttons/TCL_BRIGHTNESS_UP

Press the more complex TCL_BRIGHTNESS_UP button as it if were a regular button:

$ irremote -b TCL_BRIGHTNESS_UP

If the IP address argument is omitted in a non-client mode, the broadlink API may try to scan the network for the device, although this can be slower and less reliable.

Metadata

Release files for irremote 2026.5.25.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for irremote 2026.5.25.2
File Size Uploaded Provenance Actions
irremote-2026.5.25.2.tar.gz 6.7 kB Without provenance Details for irremote-2026.5.25.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for irremote 2026.5.25.2
File Interpreter ABI Platform Actions
irremote-2026.5.25.2-py3-none-any.whl Python 3 none any Details for irremote-2026.5.25.2-py3-none-any.whl

Total release size: 13.7 kB

Release files / irremote-2026.5.25.2.tar.gz

Download URL irremote-2026.5.25.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
66b5328800b7094836f9feb5ff852ceff143564268b2024838494771482eb724
BLAKE2b-256 checksum
How to use checksums
787aaae8eabc211169bdf071369bd3c7943eecafdf7dc997deb4fc043310290e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / irremote-2026.5.25.2-py3-none-any.whl

Download URL irremote-2026.5.25.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86eae815a81340c19bbfcbe59ec4b03664b40642481fa547c8df4deaaa131fd5
BLAKE2b-256 checksum
How to use checksums
1738195cb79466446ecdff4accab405f5a08b128797acd874d42e20b3b588053
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for irremote 2026.5.25.2

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.

Release history Release notifications | RSS feed

This release

2026.5.25.2 This release

2 release files No provenance

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