Skip to main content

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_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

py_irsend-1.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

py_irsend-1.0.1-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file py_irsend-1.0.1.tar.gz.

File metadata

  • Download URL: py_irsend-1.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for py_irsend-1.0.1.tar.gz
Algorithm Hash digest
SHA256 aef5201d2a6d35a10ce63218e4a5537df23e133ee31bbc5894da9b3d1d92f06c
MD5 d4121ff97ca41cafebf112e0e41e9817
BLAKE2b-256 ab10073ba5e424bb6da27fea5f9afcfa29c402347a58171dfe7a6479aa4fdb83

See more details on using hashes here.

File details

Details for the file py_irsend-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: py_irsend-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for py_irsend-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8553e0ee0c2ae468743e92fb56f9f6dda454260dc5bbaf344ad849217023592a
MD5 d17233268337e956c69970bbae8a6372
BLAKE2b-256 af41f82957d1a34c7addd34e034125cafa041b17f52b89ed555ee1613ead383f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page