oimdp: OpenITI mARkdown Parser
This Python library will parse an OpenITI mARkdown document and return a python class representation of the document structures.
Usage
import oimdp
md_file = open("mARkdownfile", "r")
text = md_file.read()
md_file.close()
parsed = oimdp.parse(text)
Parsed structure
Please see the docs, but here are some highlights:
Document API
content: a list of content structures
get_clean_text(): get the text stripped of markup
Content structures
Content classes contain an original value from the document and some extracted content such as a text string or a specific value.
Most other structures are listed in sequence (e.g. a Paragraph is followed by a Line).
Line objects and other line-level structures are divided in PhrasePart objects.
PhrasePart are phrase-level tags
Develop
Set up a virtual environment with venv
python3 -m venv .env
Activate the virtual environment
source .env/bin/activate
Install
python setup.py install
Tests
With the environment activated:
python tests/test.py
Metadata
Release files for oimdp 1.3.0
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 |
|---|---|---|---|---|
| oimdp-1.3.0.tar.gz | 8.6 kB | Without provenance | Details for oimdp-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oimdp-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for oimdp-1.3.0-py3-none-any.whl |
Total release size: 17.4 kB
Release files / oimdp-1.3.0.tar.gz
| Download URL | oimdp-1.3.0.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2f61618d5a96ac14dcab2347d0196f51e2d9db9de153986216b8a218615ac1a
|
|
BLAKE2b-256 checksum How to use checksums |
7ea213fb1d95ec7f1c59d0af6541f4abaa1d25d26e3193e135603b83b8ac66f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / oimdp-1.3.0-py3-none-any.whl
| Download URL | oimdp-1.3.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeb851f76175844d09d25abdef861e20d0d1f3449e4ebccceef0b0895dc5595e
|
|
BLAKE2b-256 checksum How to use checksums |
70461e51a35338e0a049fa66638a62601280f47701af8f4591ef348e22a99a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for oimdp 1.3.0
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.