A module containing the implementation of a Node Tree
Project description
Repository of python package greentree
The Green Tree package implements a pure python Node tree data structure.
Example
Basic Usage:
from greentree import Node
a = Node("a")
b = Node("b")
c = Node("c")
d = Node("d")
e = Node("e")
f = Node("f")
g = Node("g")
a.add_left(b)
a.add_right(c)
b.add_right(d)
b.add_right(e)
c.add_left(f)
c.add_right(g)
Using the show method:
>>> a.show()
└── a
├── b
│ ├── d
│ └── e
└── c
├── f
└── g
License
Licensed under the MIT License.
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
greentree-0.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greentree-0.1.0.tar.gz.
File metadata
- Download URL: greentree-0.1.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8ff28dfbbb5643b6f728f27fdd0abd0d61c0beb57258255275592bfb550538c
|
|
| MD5 |
ffb9a07f788949bb09f903aeeaa52733
|
|
| BLAKE2b-256 |
52e99bfd90f2b6b4c44667bb2f4029466fa1bfef1a5949ec3cf9dc11337a0806
|
File details
Details for the file greentree-0.1.0-py3-none-any.whl.
File metadata
- Download URL: greentree-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec33ffd7cf4c4c4126f895766c80d37b0fb29953bebdbe68434b8114f69d934
|
|
| MD5 |
5f8bb9aaada706ddb0dbb94ad79618e4
|
|
| BLAKE2b-256 |
468fa0f7802948172b23dd22cdf9090a74b422915a26e869dad5e5267030d2a4
|