Skip to main content

Implementation of the popular node-archy tool in python

Project description


# PyArchy

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

[![PyPI](https://img.shields.io/pypi/v/py_archy.svg)](https://pypi.python.org/pypi?name=py_archy&:action=display)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()

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


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

py_archy-1.0.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file py_archy-1.0.2.tar.gz.

File metadata

  • Download URL: py_archy-1.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for py_archy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7f309a8b22b26a8a868a0771696e0a9a8c261efac725189d19ed7a396929dca4
MD5 cb6f64a9fc8cf1976576faca2eed3fce
BLAKE2b-256 e1bb3caf99e16500facb301227342d44fbac20b39300eb6eeceb4076ae7bf3e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page