https://github.com/dcdanko/pyarchy
Draw good looking trees and lists in python3, just like archy in NPM.
https://github.com/dcdanko/pyarchy
Last synced: 11 months ago
JSON representation
Draw good looking trees and lists in python3, just like archy in NPM.
- Host: GitHub
- URL: https://github.com/dcdanko/pyarchy
- Owner: dcdanko
- License: mit
- Created: 2017-02-26T02:05:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-07T04:47:26.000Z (over 8 years ago)
- Last Synced: 2025-06-17T09:06:47.019Z (12 months ago)
- Language: Python
- Homepage: https://www.npmjs.com/package/archy
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyArchy
Implementation of the popular node-archy tool in python.
Draws good looking trees and lists on the command line.
[](https://pypi.python.org/pypi?name=py_archy&:action=display)
[]()
[](https://travis-ci.org/dcdanko/pyarchy)
[The original Archy on NPM](https://www.npmjs.com/package/archy)
### 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.