emlib

Optional support classes for EmPy.

Functions

main()

Classes

AbstractHook([interp])

An abstract base class for implementing hooks.

BufferedFilter()

A buffered filter is one that doesn't modify the source data sent to the sink, but instead holds it for a time.

Callback([interp])

A root class for any callback utilities.

ConcreteFilter()

A concrete filter has a single sink.

Container([interp])

A container contains a reference to an interpreter.

DelimitedFilter(delimiter)

A delimited filter only lets data through when it sees whole lines.

Details([useSanitization])

Gather details on a running Python system for debugging purposes.

Document(ident, filename)

A representation of an individual EmPy document, as used by a processor.

DroppingFilter(droppings)

A filter which drops any chunks that match the provided list of chunks to ignore.

Filter()

An abstract filter.

Finalizer([interp])

A root class for a finalizer.

FullyBufferedFilter()

A maximally-buffered filter only lets its data through on the final close.

FunctionFilter(function)

A filter that works simply by pumping its input through a function which maps strings into strings.

Handler([interp])

A root class for any error handler.

Hook([interp])

The base class for implementing hooks.

IdentityFilter()

A filter which just sends any output straight through to its sink.

IndentFilter(indent)

Automatically indent a fixed number of spaces after every newline.

LineDelimitedFilter([delimiter])

A line-delimited filter only lets data through when it sees whole lines.

NullFilter()

A filter that never sends any output to its sink.

Processor(config[, factory])

An entity which is capable of processing a hierarchy of EmPy files and building a dictionary of document objects associated with them describing their significator contents.

SizeBufferedFilter([bufferSize])

A size-buffered filter only in fixed size chunks (excepting the final chunk).

SplittingFilter(sinks)

A filter that splits the output stream n ways.

StringFilter(table)

A filter that takes a lookup table (e.g., string, list, or dictionary) and filters any incoming data through it via str.translate.