pytwine.processors.IdentityProcessor

class pytwine.processors.IdentityProcessor(sink: TextIO)[source]

Bases: pytwine.processors.Processor

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

__init__(sink: TextIO)[source]
Parameters

sink – a file-like object to be written to.

Methods

__init__(sink)

param sink

a file-like object to be written to.

twine(chunks)

THE TWINE FUNC - WORK IN PROGRESS

twine(chunks: List[pytwine.core.Chunk]) None[source]

THE TWINE FUNC - WORK IN PROGRESS