Skip to main content

Python package that helps you visualize your binary tree

Reason this release was yanked:

Please install v1.1.0

Project description

displaytree - python package

displaytree is a Python package that allows us to visualize our binarytree.

Compatibility ​​​🐍​

This package is compatible with both Python 2 and Python 3

Install ​🖥️​

 pip install displaytree

Usage ​​📝​

from displaytree import binarytree

binarytree(root_node, "right", "left", "value")

  • The above python syntax prints the binary tree in the shape/structure of the created tree, hence helping us to visualize our created tree.

There are Four arguments that should be passed:

  • root_node - Pass the root node(also an object of the node class) of the created tree.
  • right - Pass the pointer attribute that points to the right node as a string.
  • left - Pass the pointer attribute that points to the left node as a string.
  • value - Pass the value attribute of the node which you want to be printed in each node of the tree as a string.

Features ​​​🔥​

  • No need to for any modification in the original python code.
  • You can use your own NODE class for creating and operating your binary tree.
  • Thus, helping us to add as many attributes in the NODE class according our requirements.
  • When a NODE is not present/NULL, it will be presented as ​​​❓​ in the tree representation.
  • Equally spaced representation of the tree.
  • Clean and elegant look for clear visualization
  • Created with ​​​🧡​

Operating Systems ​​​💾​

  • Compatible with all major operating systems.

Project links ​​​🔗​

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

displaytree-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file displaytree-1.0.1.tar.gz.

File metadata

  • Download URL: displaytree-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for displaytree-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5bd5c06339ee7dbce3cb1c9ab236daed1e21df16b5bd5dd853c29736a9520a9
MD5 a39154d18ef38678219d10a560161465
BLAKE2b-256 b30136738fee8fe2a289c74b8bd7caf77b5cf3251cf8261d33e578a17a460d23

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