LIRC libraries
LinuxInfraredRemoteControl
|
Unstable python interfaces to read and send lirc data. More...
Modules | |
Classes to receive keypresses | |
Interface to read raw code strings like irw(1) or translated application strings like ircat(1). | |
Classes to send commands | |
Classes to send a Command to lircd and parse the reply. | |
Commands to control lircd | |
Canned classes, one for each command in the lircd(8) socket interface. | |
Commands to control lircrcd | |
Canned classes, one for each command in the lircrcd(l8) socket interface. | |
Files | |
file | _client.c |
python bindings for part of lirc_client.hThese bindings provides python3 access to some of the lirc_client.h functions. | |
file | client.py |
Top-level python bindings for the lircd socket interface. | |
Classes | |
class | lirc.client.BadPacketException |
Malformed or otherwise unparsable packet received. More... | |
class | lirc.client.TimeoutException |
Timeout receiving data from remote host. More... | |
Functions | |
def | lirc.client.get_default_socket_path () |
Get default value for the lircd socket path, using (falling priority): More... | |
def | lirc.client.get_default_lircrc_path () |
Get default path to the lircrc file according to (falling priority): More... | |
Variables | |
string | lirc.client._DEFAULT_PROG |
Unstable python interfaces to read and send lirc data.
Sending is a pure python implementation described in Classes to send commands.
Reading data uses a C extension module, see Classes to receive keypresses. This also includes AsyncConnection with a small asynchronous interface to read data.
The otherwise undocumented file config.py, which can be imported using import lirc.config, provides access to the paths defined when running configure such as VARRUNDIR (often /var/run) and SYSCONFDIR (typically /etc).
def lirc.client.get_default_lircrc_path | ( | str | ) |
Get default path to the lircrc file according to (falling priority):
def lirc.client.get_default_socket_path | ( | str | ) |
Get default value for the lircd socket path, using (falling priority):