oitei: OpenITI TEI Converter
This Python library converts an OpenITI mARkdown document and returns a TEI-XML string based on the OpenITI TEI Schema.
Installation
Set up a virtual environment with venv
python3 -m venv .env
Activate the virtual environment
source .env/bin/activate
Install
python setup.py install
Usage
import oitei
md = open("markdown.md", "r").read()
md.close()
tei_string = oitei.convert(md).tostring() # or just cast to string with str()
with open('tei.xml', 'w') as writer:
writer.write(tei_string)
Coverage
This converter is based on the OpenITI mARkdown Parser, which covers the mARkdown specification.
The most common structures are currently converted to TEI, but other less common ones are still missing:
- MorphologicalPattern
- OpenTagAuto
- OpenTagUser
- RouteDist
- RouteFrom
- RouteTowa
There are also plans to convert to TEI YAML metadata provided with mARkdown files in the OpenITI corpus.
Metadata
Release files for oitei 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oitei-1.1.1.tar.gz | 7.3 kB | Without provenance | Details for oitei-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oitei-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for oitei-1.1.1-py3-none-any.whl |
Total release size: 14.6 kB
Release files / oitei-1.1.1.tar.gz
| Download URL | oitei-1.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77c2bf2ab5471e0ce0e909d5a14a4e0c2a1e49ca77e285452fb0e85ebb3a6c12
|
|
BLAKE2b-256 checksum How to use checksums |
031dfc260a2ac5ac8b035e707e8d0ced8289d62c8a1c7f6b18826602175aa191
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / oitei-1.1.1-py3-none-any.whl
| Download URL | oitei-1.1.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb9cbc1f50cb4dbdca7deb1d8711b015856543f10e439203c7d98f296e36689a
|
|
BLAKE2b-256 checksum How to use checksums |
2ff3d75c03f1e7e0eb2ebf617e971d924e84249f14d2a8509c1d2e5d94f53801
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for oitei 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.