python-irsend
This is a simple wrapper for lirc's irsend.
Install:
pip install py_irsend
Basic Usage:
>>> from py_irsend import irsend
>>> irsend.list_remotes()
['lasko_heater', 'lights.conf', 'dynex_tv', 'logitech_z906', 'sabrent_hdmi_switch']
>>> irsend.list_codes('logitech_z906')
['POWER', 'INPUT', 'MUTE', 'LEVEL', 'EFFECT', 'VOLUME_DOWN', 'VOLUME_UP']
>>> irsend.send_once('logitech_z906', ['POWER'])
It makes use of subprocess to call irsend. No attempts are made to handle errors (e.g. irsend not being installed, or lircd not running), and instead leaves those to the caller. See the documentation for subprocess (specifically check_output) to determine which exceptions may be raised.
Release files for py-irsend 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_irsend-1.0.2.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_irsend-1.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 30.1 kB
Release files / py_irsend-1.0.2.tar.gz
| Download URL | py_irsend-1.0.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d236b6d5ea01158f69135ec34b4c676cb2342fbee61709ba5cb5a36059b7aeb
|
|
BLAKE2b-256 checksum How to use checksums |
fd70483cdb81441f2c15542552339bab4e63e7a157cb55c9cc766b67443d3651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Release files / py_irsend-1.0.2-py2.py3-none-any.whl
| Download URL | py_irsend-1.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0fa71b8e08c0542bcefd2574a7340cabbd23f6cbd7ad691108fcd1590f7d8f7d
|
|
BLAKE2b-256 checksum How to use checksums |
666d026c64ebaf1090be1cdbe15fc6220285b46a35baeb0d42718e6bb7be4507
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|