delorean
A library to convert markup documents into tree data structures and vice versa. There is greater functionality available to modify, prune, add and delete parts of documents when there are in the MarkdownTree structure.
The full list of features can be found in FEATURES.md or in the documentation.
Install
Install via pip
pip install pydelorean
You can find the library page here here <nil>__
Quick Usage Guide
The library can be used to convert markdown documents into forest data strucutre. Using just the treeify command on the following text
# Chikin Tales
Once there was a chikin.
## Chapter 1 : Chikin Fly
Chickens don't fly. They do only the following:
- waddle
- plop
### Waddling
A waddle is what these birds do.
## Chapter 2 : Chikin Scream
### Plopping
Plopping involves three steps:
1. squawk
2. plop
3. repeat, unless ordered to squat
from pydelorean import treeify
tree = treeify(text)
print(tree)
Chikin Tales
/ \ \
/ \ \
(Once th..) | \
| \
Chapter 1 \
/ | Chapter 2
/ | |
(Chickens do..) | Plopping
| |
Waddling (Plopping...)
|
(A waddle...)
For a usage guide, access the samples/ directory or check out the
documentation page here - nil
Features
Some of the features of this library are:
- forest data structure for Markdown, reStructuredText, AsciiDoc, JSON, YAML and XML.
- 'cleaning' of documents to remove unwanted elements.
- document manipulation using the tree data structure.
- document generation from tree data structure.
License
This project is licensed under the Apache 2.0 License. A copy of the license can be found in the LICENSE file.
Metadata
Release files for pydelorean 1.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydelorean-1.5.4.tar.gz | 64.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pydelorean-1.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.1 kB
Release files / pydelorean-1.5.4.tar.gz
| Download URL | pydelorean-1.5.4.tar.gz |
|---|---|
| Size | 64.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8f04a495a7521a859ab0cbd47baff03f094c05aec8eb3e5c12349da101a0524
|
|
BLAKE2b-256 checksum How to use checksums |
04864a1d0c876183f7631778060d1d24cddb0c6f6cdc01ea9fe3117b92ecf1c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / pydelorean-1.5.4-py3-none-any.whl
| Download URL | pydelorean-1.5.4-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aebb946c78bc41ef350d9c2a68e27da446ec757efad929fa9ab419f86ed4e4d0
|
|
BLAKE2b-256 checksum How to use checksums |
b2362d303b5228b485917bae11869cd714add838e97e96c111793f5e9a97ccfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|