Skip to main content

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


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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greentree-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greentree-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for greentree-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4dcc20e87699ba52836a494dfb825aa2c9ef87a6ad6876e4bc4e605f4be9a036
MD5 f0fe248d68938c65771e2bbdc794bbe1
BLAKE2b-256 38217cd9f9a7fb5d98c7a6e38a48666cec12be1194d4f914a7d72adf8e03d629

See more details on using hashes here.

File details

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

File metadata

  • Download URL: greentree-0.1.1-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

Hashes for greentree-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3d60924d35858a7b99fe5a4689c9770ffb80e821a6012d4e504c03dc9d93fe4f
MD5 79b4876d509eb8e8408fc4f876125fa1
BLAKE2b-256 d8367c4d4a60689b013d1fa8b4a5138a2c7cb9a2b148b95f51fbb1595d44ac06

See more details on using hashes here.

Supported by

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