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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ohmyds-0.0.2.tar.gz.

File metadata

  • Download URL: ohmyds-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for ohmyds-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fb80ed21e07cfc84ad877e37fa295f3fe3ba1d7c2cdf94847f16b7a43bcd0cca
MD5 c4392676ab4c35a54360c5a1ece8f4e0
BLAKE2b-256 b919edcf32c53c4a41472d59a1cb05f213aecff70f801a10c992e342c20cad86

See more details on using hashes here.

File details

Details for the file ohmyds-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ohmyds-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for ohmyds-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc9b89b3ee2c786afa0959fa75ed7f82c4d8a8640d0750b0be754db6aafea420
MD5 02396229445f08fc39df02e2a09c7167
BLAKE2b-256 d22e7a5f83a3b96518c0f6ca7fc0f470aff09d061f0903b3a29810395a159d3d

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