Metadata-Version: 2.1
Name: tree-format
Version: 0.1.2
Summary: UNKNOWN
Home-page: http://github.com/jml/tree-format
Author: Jonathan M. Lange
Author-email: jml@mumak.net
License: UNKNOWN
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Provides-Extra: dev

Python library to generate nicely formatted trees, like the UNIX `tree`
command.

## Example

Produce output like this:

```
foo
├── bar
│   ├── a
│   └── b
├── baz
└── qux
    └── c⏎
        d
```

using code like this:

```python
from operator import itemgetter

from tree_format import format_tree

tree = (
    'foo', [
        ('bar', [
            ('a', []),
            ('b', []),
        ]),
        ('baz', []),
        ('qux', [
            ('c\nd', []),
        ]),
    ],
)

print format_tree(
    tree, format_node=itemgetter(0), get_children=itemgetter(1))
```

## License

This is made available under the Apache Software License, version 2.0.

Copyright (c) 2015 - Jonathan M. Lange

## Testing

Run tests with:

```
python -m testtools.run discover
```



