Skip to main content

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

Project description

Build Status

TEfy

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 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 from PyPI ($ pip install TEfy) and convert let's say an ODT document like this:

from TEfy import OxGaWrap
example_file = OxGaWrap('path/to/example.odt')
example_file.convert_to_tei()
etree_object = example_file.get_et_output()

Feedback

I'm an amateur pythonista and this is just one of my clumsy baby steps, so any feedback on how to improve TEfy is very welcome!

Project details


Download files

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

Source Distribution

TEfy-0.1.3.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page