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
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
ohmyds-0.0.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
ohmyds-0.0.2-py3-none-any.whl
(3.8 kB
view hashes)