# 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_output](https://docs.python.org/2/library/subprocess.html#subprocess.check_output)) to determine which exceptions may be raised.
Release files for py-irsend 1.0.1
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.1.tar.gz | 15.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_irsend-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 19.7 kB
Release files / py_irsend-1.0.1.tar.gz
| Download URL | py_irsend-1.0.1.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aef5201d2a6d35a10ce63218e4a5537df23e133ee31bbc5894da9b3d1d92f06c
|
|
BLAKE2b-256 checksum How to use checksums |
ab10073ba5e424bb6da27fea5f9afcfa29c402347a58171dfe7a6479aa4fdb83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / py_irsend-1.0.1-py2.py3-none-any.whl
| Download URL | py_irsend-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8553e0ee0c2ae468743e92fb56f9f6dda454260dc5bbaf344ad849217023592a
|
|
BLAKE2b-256 checksum How to use checksums |
af41f82957d1a34c7addd34e034125cafa041b17f52b89ed555ee1613ead383f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|