A package to convert between markup language documents and a forest data structure for efficient processing.
Project description
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 under Features
Install
Install via pip
pip install pydelorean
You can find the library page here here
Quick Usage Guide
delorean offers only one function treeify, which generates a Python object from markup text. The object is a [treelib](https://github.com/caesar0301/treelib) Tree structure.
Take, for example, the following markdown file.
[[ chikin.md ]]
# 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
Chikin Tales
/ \ \
/ \ \
(Once th..) | \
| \
Chapter 1 \
/ | Chapter 2
/ | |
(Chickens do..) | Plopping
| |
Waddling (Plopping...)
|
(A waddle...)
For the full usage guide, access the SAMPLES.md file.
Features
Some of the features of this library are:
Converts a markdown file to a manipulatable, light Python data structure.
Converts the Python data structure back into a Markdown file.
Traverse and edit the Python 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.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file pydelorean-1.1.0.tar.gz
.
File metadata
- Download URL: pydelorean-1.1.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0745de1a5bdce5a00f9bd206c728ac048d8588c0bd81773cc0fbdc69ef577bc3 |
|
MD5 | 5188a380f7fb4cd3d52c93d9cd758be3 |
|
BLAKE2b-256 | ed756027e9646563165a004e29b158d4ce6806eb4d1c3ab82034c0c44846c81c |
File details
Details for the file pydelorean-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: pydelorean-1.1.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 395696f111e3c5340f7ffe1b8909c1a4169591a46de9895a8db51ce6e2a3b6fc |
|
MD5 | 6a630ce15be312203092ae5b19d4919c |
|
BLAKE2b-256 | 0fc2c5c63bf31ffb8f3bbb4f4185f290936bb09eae3a02d4a7688d72b023a05e |