Project: asciitree

Draws ASCII trees.

Project Details

Latest version
0.3.3
Home Page
http://github.com/mbr/asciitree
PyPI Page
https://pypi.org/project/asciitree/

Project Popularity

PageRank
0.0019370068828770096
Number of downloads
303977

ASCII Trees

.. code:: console

asciitree +-- sometimes | +-- you +-- just | +-- want | +-- to | +-- draw +-- trees +-- in +-- your +-- terminal

.. code:: python

from asciitree import LeftAligned from collections import OrderedDict as OD

tree = { 'asciitree': OD([ ('sometimes', {'you': {}}), ('just', {'want': OD([ ('to', {}), ('draw', {}), ])}), ('trees', {}), ('in', { 'your': { 'terminal': {} } }) ]) }

tr = LeftAligned() print(tr(tree))

Read the documentation at http://pythonhosted.org/asciitree