Loading...
Searching...
No Matches
client.py File Reference
Python client bindings

Top-level python bindings for the lircd socket interface. More...

Go to the source code of this file.

## Classes

class | lirc.client.BadPacketException
| Malformed or otherwise unparsable packet received. More...
class | lirc.client.TimeoutException
| Timeout receiving data from remote host. More...
class | lirc.client.AbstractConnection
| Abstract interface for all connections. More...
class | lirc.client.RawConnection
| Interface to receive code strings as described in lircd(8). More...
class | lirc.client.LircdConnection
| Interface to receive lircrc-translated keypresses. More...
class | lirc.client.CommandConnection
| Extends the parent with a send() method. More...
class | lirc.client.Result
| Public reply parser result, available when completed. More...
class | lirc.client.Command
| Command, parser and connection container with a run() method. More...
class | lirc.client.Reply
| The status/result from parsing a command reply. More...
class | lirc.client.ReplyParser
| Handles the actual parsing of a command reply. More...
class | lirc.client._State
| Internal FSM state. More...
class | lirc.client.SimulateCommand
| Simulate a button press, see SIMULATE in lircd(8) manpage. More...
class | lirc.client.ListRemotesCommand
| List available remotes, see LIST in lircd(8) manpage. More...
class | lirc.client.ListKeysCommand
| List available keys in given remote, see LIST in lircd(8) manpage. More...
class | lirc.client.StartRepeatCommand
| Start repeating given key, see SEND_START in lircd(8) manpage. More...
class | lirc.client.StopRepeatCommand
| Stop repeating given key, see SEND_STOP in lircd(8) manpage. More...
class | lirc.client.SendCommand
| Send given key, see SEND_ONCE in lircd(8) manpage. More...
class | lirc.client.SetTransmittersCommand
| Set transmitters to use, see SET_TRANSMITTERS in lircd(8) manpage. More...
class | lirc.client.VersionCommand
| Get lircd version, see VERSION in lircd(8) manpage. More...
class | lirc.client.DrvOptionCommand
| Set a driver option value, see DRV_OPTION in lircd(8) manpage. More...
class | lirc.client.SetLogCommand
| Start/stop logging lircd output , see SET_INPUTLOG in lircd(8) manpage. More...
class | lirc.client.IdentCommand
| Identify client using the prog token, see IDENT in lircrcd(8). More...
class | lirc.client.CodeCommand
| Translate a keypress to application string, see CODE in lircrcd(8). More...
class | lirc.client.GetModeCommand
| Get current translation mode, see GETMODE in lircrcd(8). More...
class | lirc.client.SetModeCommand
| Set current translation mode, see SETMODE in lircrcd(8). More...

## Functions

str | lirc.client.get_default_socket_path ()
| Get default value for the lircd socket path, using (falling priority):
str | lirc.client.get_default_lircrc_path ()
| Get default path to the lircrc file according to (falling priority):
| lirc.client._bad_packet_exception (self, line)
| lirc.client._begin (self, line)
| lirc.client._command (self, line)
| lirc.client._result (self, line)
| lirc.client._data (self, line)
| lirc.client._line_count (self, line)
| lirc.client._lines (self, line)
| lirc.client._end (self, line)
| lirc.client._sighup_end (self, line)

## Variables

str | lirc.client._DEFAULT_PROG
| lirc.client.result = Result.FAIL
| lirc.client._state
bool | lirc.client.sighup = True
str | lirc.client.success = 'SUCCESS'
int | lirc.client._lines_expected = int(line)
| lirc.client.data

## Detailed Description

Top-level python bindings for the lircd socket interface.

Author
  Alec Leamas

Python bindings for a subset of the lirc_client.h interface.

Definition in file client.py.

## Variable Documentation

## _lines_expected

int lirc.client._lines_expected = int(line)

protected

Definition at line 538 of file client.py.

## _state

lirc.client._state

protected

Definition at line 506 of file client.py.

## data

lirc.client.data

Definition at line 548 of file client.py.

## result

lirc.client.result = Result.FAIL

Definition at line 504 of file client.py.

## sighup

bool lirc.client.sighup = True

Definition at line 517 of file client.py.

## success

str lirc.client.success = 'SUCCESS'

Definition at line 523 of file client.py.