Skip to main content

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.

Metadata

Release files for displaytree 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for displaytree 1.1.0
File Size Uploaded Provenance Actions
displaytree-1.1.0.tar.gz 4.2 kB Without provenance Details for displaytree-1.1.0.tar.gz

Release files / displaytree-1.1.0.tar.gz

Download URL displaytree-1.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3c87cbe7aa26f931609fd8d26a4d2c0b1325e28d2089cbf24533fcdad217d558
BLAKE2b-256 checksum
How to use checksums
294841f93b5ebcb9ea6debb7ac9f30226ad514fcce942487a746ee2e41a41c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.2

Security for displaytree 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page