Skip to main content

A general tree implementation and provides convinient methods for defining trees in JSON or YAML files.

Project description

# PTree

PTree provides a general tree implementation which is not really useful in itself.

## Requirements

The gtree package has no requirements other than Python 3.

## Usefulness

Ignoring the statement above, it provides a method for building a tree from dictionaries and convinient methods for iterating trees (bottom up as well as top to bottom).

This means that you can define a tree structure in JSON and YAML files, load it using e.g. using json.load and then build a tree.

See examples directory for more!

## Tests

The tests utilize the popular Python module pytest. From the project root directory run the following command to run all tests:

` > pytest tests `

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

gtree-0.1.2.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

gtree-0.1.2-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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