Common Functions

pynlpl.common.Enum(*names)
pynlpl.common.b(s)
pynlpl.common.isstring(s)
pynlpl.common.log(msg, **kwargs)

Generic log method. Will prepend timestamp.

Keyword Arguments:
 
  • system - Name of the system/module
  • indent - Integer denoting the desired level of indentation
  • streams - List of streams to output to
  • stream - Stream to output to (singleton version of streams)
pynlpl.common.u(s, encoding='utf-8', errors='strict')