tefy
was born out of the need to streamline the conversion of doc,
docx and odt documents into TEI XML when using Python scripts. It's a
very basic wrapper around the OxGarage
API at https://oxgarage.tei-c.org/ege-webservice/ and
covers a small subset of conversions, namely from doc, docx and odt to TEI
XML. The conversion result is output as an lxml etree Element.
You can install tefy with pip ($ pip install tefy
)
and convert let's say an ODT document like this:
from tefy import OxGaWrap
doc = OxGaWrap('path/to/example.odt')
tei = doc.tei_xml