Skip to main content

A package to convert between markup language documents and a forest data structure for efficient processing.

Project description

media/image.png

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:

  1. Converts a markdown file to a manipulatable, light Python data structure.

  2. Converts the Python data structure back into a Markdown file.

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydelorean-0.3.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

pydelorean-0.3.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file pydelorean-0.3.1.tar.gz.

File metadata

  • Download URL: pydelorean-0.3.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pydelorean-0.3.1.tar.gz
Algorithm Hash digest
SHA256 67a4fbbc619fd6655d24bce485d43da081322212daa1e4b2f0e67134e41c4732
MD5 2d403b7ac2eef8933224d23c14987bab
BLAKE2b-256 40a506ed915d503affc5c2a6725643fda64ea10c9a9f7e65805899f8e0d35deb

See more details on using hashes here.

File details

Details for the file pydelorean-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pydelorean-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pydelorean-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b46333f2e4523918f6558241e3872305abf4c2011972383ead600ec9b3d7eaa7
MD5 72bc156fe6c02ee1b4f34e6a3d62ade5
BLAKE2b-256 17a0e5b106a6359b6fe49f8d1f0319f360407f17af01ec05f1f7f273a4a173f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page