OpenITI mARkdown Parser
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oimdp-1.0.0.tar.gz.
File metadata
- Download URL: oimdp-1.0.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae970e197b2dff258f02000a8725390bfdd345965b9cffad08bd1b83b1afbfc4
|
|
| MD5 |
01bb1c3fe761b70bc65b77578a8231d7
|
|
| BLAKE2b-256 |
140c40c81dc40ff364ce0f3f0df83c22a3be87445fdf341a8fce7da63e3ec856
|
File details
Details for the file oimdp-1.0.0-py3.8.egg.
File metadata
- Download URL: oimdp-1.0.0-py3.8.egg
- Upload date:
- Size: 16.2 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31ebe38d9f42a97057132267419b920fb9999d089d63937378b0fb4fb179d07f
|
|
| MD5 |
5a7c05eb07303262963b7572d59aa3a6
|
|
| BLAKE2b-256 |
1b53b9a57a7a81efc7fe2ac7e4d067409753d9b2b904982d749662f7a9446595
|