A simple wrapper for lirc's irsend.
Project description
# python-irsend
This is a simple wrapper for [lirc’s irsend](http://www.lirc.org/html/irsend.html).
## 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](https://docs.python.org/2/library/subprocess.html) 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_call](https://docs.python.org/2/library/subprocess.html#subprocess.check_call) and [check_output](https://docs.python.org/2/library/subprocess.html#subprocess.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
Built Distribution
Hashes for py_irsend-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e4c980ee16c3c4f06f1618fa09ec97203bd655d67380020be06ee0353b5e716 |
|
MD5 | ecf98c8de2be0df696c0811c12e97ee7 |
|
BLAKE2b-256 | 1bb3b62780d7d638eefbc51aa7cc2ffd189004ead8f86812ee5805af0ce7d745 |