Module a.__init__

Part of aculab View Source

Event driven, MVC inspired Python wrapper around the Aculab API.
Function daemonize This forks the current process into a daemon.
Function defaultLogging Establish default logging as used by the example scripts.
Function set_TiNGtrace Helper function for the option parser: set TiNGtrace.
Function defaultOptions A default option parser.
def daemonize(stdout='/dev/null', stderr=None, stdin='/dev/null', pidfile=None): (source)

This forks the current process into a daemon.

The stdin, stdout, and stderr arguments are file names that will be opened and used to replace the standard file descriptors in sys.stdin, sys.stdout, and sys.stderr.

These arguments are optional and default to /dev/null. Note that stderr is opened unbuffered, so if it shares a file with stdout then interleaved output may not appear in the order that you expect.
def defaultLogging(level=logging.WARNING, logfile=None): (source)

Establish default logging as used by the example scripts.

If logfile is None (the default), log to stdout. Read the source for details.
def set_TiNGtrace(option, opt, value, parser): (source)
Helper function for the option parser: set TiNGtrace.
def defaultOptions(*args, repeat=False, **kwargs): (source)

A default option parser.

Related Python documentation: optparse

Passes all extra args/kwargs on to the OptionParser constructor.

The returned option parser understands the following arguments:
  • -c CARD or --card=CARD: select card
  • -p PORT or --port=PORT: select port
  • -c MODULE or --module=MODULE: select module
  • -t TiNGtrace or --tingtrace=TiNGtrace: select TiNGtrace level (0-9)
  • -r or --repeat: repeat after hangup
ParametersrepeatInclude -r or --repeat in the option list. Off by default.
Returnsan option parser with the default options listed above.
API Documentation for pyAculab, generated by pydoctor at 2009-01-02 15:12:29.