Skip to content
module

pylnlib.Utils

Classes
  • Args Common command line argument parsing.</>
Functions
  • createInterface(args) create an Interface object, possibly pointing to a file with previously captured input.</>
  • createScrollkeeper(interface, args) (Scrollkeeper) Create a Scrollkeeper instance that receives and sends messages via interface.</>
  • dumper(handle, timestamp) return a function that writes raw message data to a file.</>
  • logger(msg) Write a message with a timestamp to stderr.</>
  • reporter(scrollkeeper, interval) return a function that prints the contents of a Scrollkeeper instance at regular intervals.</>
class

pylnlib.Utils.Args()

Common command line argument parsing.

function

pylnlib.Utils.logger(msg)

Write a message with a timestamp to stderr.

function

pylnlib.Utils.dumper(handle, timestamp=False)

return a function that writes raw message data to a file.

If timestamp is true, it will prefix each message with a CaptureTimeStamp

function

pylnlib.Utils.reporter(scrollkeeper, interval=30)

return a function that prints the contents of a Scrollkeeper instance at regular intervals.

function

pylnlib.Utils.createInterface(args)

create an Interface object, possibly pointing to a file with previously captured input.

function

pylnlib.Utils.createScrollkeeper(interface, args)

Create a Scrollkeeper instance that receives and sends messages via interface.

Parameters
  • interface (Interface) The Interface object that the Scrollkeeper will register a receiver_handler with
  • args (Namespace) A Namespace (as returned by Argparser.argse_parse() ). Should have slottrace and dummy attributes.
Returns (Scrollkeeper)

a Scrollkeeper instance.

See Also