A simple library used to print python dictionaries in a fancier and understandable way
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dict_fancy_printer-0.1.1.tar.gz.
File metadata
- Download URL: dict_fancy_printer-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.9 Linux/5.19.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6d2d6533b9cede27ab95165aea2c324504926173ba22eb85f3e0e9b1842ffb2
|
|
| MD5 |
9038954a2c924f5f843013085e005d37
|
|
| BLAKE2b-256 |
07e57b9ffd0a64b96c936c00b55689eca7fba7f53ffd2a92f338efcb74a92330
|
File details
Details for the file dict_fancy_printer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dict_fancy_printer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.10.9 Linux/5.19.0-35-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
debcb217ddcab532c0c74ef7f8d1e5d807e68415381b6330f411148763051e9c
|
|
| MD5 |
9bd29d954e9a20d4d49558f715ed8796
|
|
| BLAKE2b-256 |
480667052b48db31165da0ab800e9d984320f7d567294abfa84c833c015e9583
|