Table of Contents
A system for processing Python as markup embedded in text.
environment ( name, default=None )
Get data from the current environment. If the default is True
or False, then presume that we're only interested in the existence
or non-existence of the environment variable.
Do an atomic expansion of the given source data, creating and
shutting down an interpreter dedicated to the task. The sys.stdout
object is saved off and then replaced before this function
info ( table )
invoke ( args )
Run a standalone instance of an EmPy interpeter.
usage ( verbose=True )
Print usage information.
An abstracted file that, when buffered, will totally buffer the
A break control flow.
A buffered filter is one that doesn't modify the source data
A comment markup.
An interpreter context, which encapsulates a name, an input
A context line change markup.
A context name change markup.
A continue control flow.
A control token.
A custom markup.
The representation of an active diversion. Diversions act as
An error related to diversions.
A representation of an individual EmPy document, as used by a
The base class for all EmPy errors.
An escape markup.
A token that involves an expansion.
An expression markup.
An abstract filter.
An error related to filters.
An exception related to control flow.
A filter that works simply by pumping its input through a
The base class for implementing hooks.
An in-place markup.
An interpreter can process chunks of EmPy code.
A line-buffered filter only lets data through when it sees
A literal markup.
A maximally-buffered filter only lets its data through on the final
A wrapper around a real Python exception for including a copy of
A simple class that supports all the file-like object methods
A filter that never sends any output to its sink.
A chunk of data not containing markups.
A parse error occurred.
A prefix markup.
An entity which is capable of processing a hierarchy of EmPy
The proxy file object that is intended to take the place of
A repr markup.
A scanner holds a buffer for lookahead parsing and has the
A significator markup.
A simple expression markup.
A size-buffered filter only in fixed size chunks (excepting the
A simple stack that behaves as a sequence (with 0 being the top
A stack underflow.
A statement markup.
A wrapper around an (output) file object which supports
A filter that takes a translation string (256 characters) and
A string token markup.
The subsystem class defers file creation so that it can create
An error associated with the Unicode subsystem.
An element of expansion.
A parse error occurred which may be resolved by feeding more data.
A simple class which wraps around a delegate file-like object
A verbose hook that reports all information received by the
A whitespace markup.