Metadata-Version: 2.1
Name: dict-fancy-printer
Version: 0.1.1
Summary: A simple library used to print python dictionaries in a fancier and understandable way
License: Apache 2.0
Author: matteogabburo
Author-email: matteogabburo@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: termcolor (>=2.2.0,<3.0.0)
Description-Content-Type: text/markdown

# dict-fancy-printer
A simple library used to print python dictionaries in a fancier and understandable way 


## Install

To install from pip:
```
pip install dict-fancy-printer
```

To install from master branch just do:
```
pip install git+https://github.com/matteogabburo/dict-fancy-printer
```

If you want to install a specific development branch, use
```
pip install git+https://github.com/matteogabburo/dict-fancy-printer@<branch_name>
```

## Usage

### FancyPrinter
- Example
```
from goburba.utils import FancyPrinter
printer = FancyPrinter()
print(printer(d))
```

### print_fancy_dict
- Example
```
from goburba.utils import print_fancy_dict
d = {"Hi": 1, "I":2, 3: "an", 4 : {"Matteo": 1, 2: "Gabburo"}}
print_fancy_dict(d)
```

### fancy_dict
- Example
```
from goburba.utils import fancy_dict
d = {"Hi": 1, "I":2, 3: "an", 4 : {"Matteo": 1, 2: "Gabburo"}}
d = fancy_dict(d)
print(d)
```
