Skip to content

Draw good looking trees and lists in python3, just like archy in NPM.

License

Notifications You must be signed in to change notification settings

dcdanko/pyarchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyArchy

Implementation of the popular node-archy tool in python. Draws good looking trees and lists on the command line.

PyPI license Build Status

The original Archy on NPM

Installation

pip install py_archy

Usage

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

Credits

This package was created with Cookiecutter.

About

Draw good looking trees and lists in python3, just like archy in NPM.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages