Skip to main content

A very basic wrapper for conversions from doc, docx and odt to TEI XML

Project description

Build Status PyPI version

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.

Usage

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tefy, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size TEfy-0.1.4-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size TEfy-0.1.4.tar.gz (3.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page