A simple wrapper for lirc's irsend.
Project description
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.
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
py_irsend-1.0.2.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for py_irsend-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa71b8e08c0542bcefd2574a7340cabbd23f6cbd7ad691108fcd1590f7d8f7d |
|
MD5 | 4aa33c93948032402825bb8738a02efa |
|
BLAKE2b-256 | 666d026c64ebaf1090be1cdbe15fc6220285b46a35baeb0d42718e6bb7be4507 |