GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • Examples

This view

  • Original page
  • New address

GeezerVison is showing lirc.org — LIRC libraries: python configuration database

Logo
LIRC libraries
LinuxInfraredRemoteControl
  • Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • Examples
AllClassesFilesFunctionsVariablesTypedefsEnumerationsMacrosModulesPages
Files | Classes | Variables
python configuration database

Python access to the configuration data. More...

Files

file  database.py
 Read-only configuration database.
 

Classes

class  lirc.database.ItemLookupError
 A lookup failed, either too namy or no matches found. More...
 
class  lirc.database.Config
 The configuration selected, and it's sources. More...
 
class  lirc.database.Database
 Reflects the *.yaml files in the configs/ directory. More...
 

Variables

string lirc.database._YAML_MSG
 

Detailed Description

Python access to the configuration data.

The database is loaded from some YAML files:

  • kernel-drivers.yaml: Static Info on the kernel drivers. Availability of these drivers is checked in runtime before being imported into db.
  • drivers.yaml, Info on the userspace drivers, collected from their compiled information by configs/Makefile using lirc-lsplugins(1).
  • confs_by_driver.yaml: Mapping of drivers -> suggested remote files, created by configs/Makefile using irdb-get.

The directory used to load these files is (first match used):

  • Current directory
  • The 'configs' dir.
  • The ../../configs

Although python cannot guarantee this, the database is designed as a read-only structure.

Simple usage examples lives in doc/: data2hwdb and data2table. The lirc-setup script provides a more elaborated example. Data structures are basically documented in the yaml files.

  • Generated by doxygen 1.8.8
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.