Implementation of the popular node-archy tool in python. Draws good looking trees and lists on the command line.
pip install py_archy
>>> from pyarchy import archy
>>>
>>> tree = { 'nodes' : [{ 'nodes' : ['a','b','c'], 'label' : 'bar'}, 'bizz'], 'label' : 'foo'}
>>>
>>> print( archy(tree))
foo
├─┬ bar
│ ├── a
│ ├── b
│ └── c
└── bizz
>>> print( archy(tree, unicode=False))
+-- bar
| +-- a
| +-- b
| `-- c
`-- bizz
This package was created with Cookiecutter.