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.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

pydelorean-0.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydelorean-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f0b64d463c4a601a85a21a5d0281f3e23edf6194d6265a4e0a1e279e33e86241
MD5 90b1f6c00592bd61e54d38c0f76c1d7e
BLAKE2b-256 302d3eb1d24b033a3efb7e3958c8e2cbe2a474859b00d29c85236345e87721cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydelorean-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1febb8e4a303c952dbf90f4e26ae76fe7ae86cadd193e20cf7fcb73db0d5070c
MD5 f83dd44d9cba6dd2a8c5fdd74fc64165
BLAKE2b-256 a8b15db9eceb51f5452d6f927dc171c39f032dbe30e3fe866df11e763db80b1f

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