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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb80ed21e07cfc84ad877e37fa295f3fe3ba1d7c2cdf94847f16b7a43bcd0cca
|
|
| MD5 |
c4392676ab4c35a54360c5a1ece8f4e0
|
|
| BLAKE2b-256 |
b919edcf32c53c4a41472d59a1cb05f213aecff70f801a10c992e342c20cad86
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc9b89b3ee2c786afa0959fa75ed7f82c4d8a8640d0750b0be754db6aafea420
|
|
| MD5 |
02396229445f08fc39df02e2a09c7167
|
|
| BLAKE2b-256 |
d22e7a5f83a3b96518c0f6ca7fc0f470aff09d061f0903b3a29810395a159d3d
|