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.

Files for gtree, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size gtree-0.1.2-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gtree-0.1.2.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page