pytwine.processors

Classes that turn lists of Chunks back into documents.

Classes

AnnotatedCodeChunk(*args, **kwargs)

just used for casting, so that mypy won't complain about attributes we add.

IdentityProcessor(sink)

The processor that tries to map every chunk back to itself.

Processor()

Base class for things that process a list of Chunks back into a document.

PythonProcessor(sink, log)

Processor that tries to run all code blocks as Python.