Metadata-Version: 2.1
Name: pyggdrasil
Version: 0.1.1
Summary: A tiny library to print trees
Author: Jonathan Herrera
Author-email: jonathan.herrera@posteo.de
Requires-Python: >=3.12,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Description-Content-Type: text/markdown

 This is a tiny library to print nested dictionaries as trees in the format of
 file trees.

 # Install

    pip install pyggdrasil


# Use

```
>>> from pyggdrasil import render_tree
>>>
>>> data = {
>>>     1: {
>>>         "a": ["A", "B", "C"],
>>>         "b": ["D", "E"]
>>>     },
>>>     2: {
>>>         "x": ["V", "W", "Q"],
>>>         "y": ["Y", "Z"],
>>>         "z": ["X", "Y"],
>>>     }
>>> }
>>> print(render_tree(data))

├─ 1
│  ├─ a
│  │  ├─ A
│  │  ├─ B
│  │  └─ C
│  └─ b
│     ├─ D
│     └─ E
└─ 2
   ├─ x
   │  ├─ V
   │  ├─ W
   │  └─ Q
   ├─ y
   │  ├─ Y
   │  └─ Z
   └─ z
      ├─ X
      └─ Y
```

