Draws ASCII trees.
Project description
asciitree
+-- sometimes
| +-- you
+-- just
| +-- want
| +-- to
| +-- draw
+-- trees
+-- in
+-- your
+-- terminal
from asciitree import LeftAligned
from collections import OrderedDict as OD
tree = {
'asciitree': OD([
('sometimes',
{'you': {}}),
('just',
{'want': OD([
('to', {}),
('draw', {}),
])}),
('trees', {}),
('in', {
'your': {
'terminal': {}
}
})
])
}
tr = LeftAligned()
print(tr(tree))
Read the documentation at http://pythonhosted.org/asciitree
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
asciitree-0.3.3.tar.gz
(4.0 kB
view details)
File details
Details for the file asciitree-0.3.3.tar.gz
.
File metadata
- Download URL: asciitree-0.3.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa4b9b649f85e3fcb343363d97564aa1fb62e249677f2e18a96765145cc0f6e |
|
MD5 | 2570b31e563b69da1aff54509db8ac6a |
|
BLAKE2b-256 | 2d6a885bc91484e1aa8f618f6f0228d76d0e67000b0fdd6090673b777e311913 |