Skip to main content

Python library to visualize data strcutures

Project description

oh-my-ds

Python library to pretty print data structures

Installation

pip3 install ohmyds

Usage

Right now only binary tree is supported

from ohmyds import binary_tree

root = binary_tree.create_tree([1,2,3,4,None,5,None,6,7,8])

For binary tree, you can do two operations right now - level order traversal and print

print(root)

The above command will print binary tree in a beautiful way (beauty is in the eyes of the beholder!)

 _1    
/  \   
3  2_  
 \   \ 
 5   4 
    / \
    7 6

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

ohmyds-0.0.2.tar.gz (2.9 kB view hashes)

Uploaded source

Built Distribution

ohmyds-0.0.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page