Skip to main content

A simple library used to print python dictionaries in a fancier and more understandable way

Project description

dict-fancy-printer

A simple library to print Python dictionaries in a fancier and more understandable way.

Installation

To install from pip:

pip install dict-fancy-printer

To install directly from the master branch, use:

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 dict_fancy_printer import FancyPrinter
printer = FancyPrinter()

d = {
  "driver": "Marty McFly",
  "vehicle": "DeLorean",
  "speed_mph": 88,                           
  "flux_capacitor": True,                     
  "last_departure": "1985-11-05 16:29:00",
  "quote": "Great Scott!",
}

print(printer(d))

print_fancy_dict

  • Example:
from dict_fancy_printer import print_fancy_dict

d = {
"driver": "Marty McFly",
"vehicle": "DeLorean",
"speed_mph": 88,                           
"flux_capacitor": True,                     
"last_departure": "1985-11-05 16:29:00",
"quote": "Great Scott!",
}

print_fancy_dict(d)

fancy_dict

  • Example:
from dict_fancy_printer import fancy_dict

d = {
"driver": "Marty McFly",
"vehicle": "DeLorean",
"speed_mph": 88,                           
"flux_capacitor": True,                     
"last_departure": "1985-11-05 16:29:00",
"quote": "Great Scott!",
}

d = fancy_dict(d)
print(d)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dict_fancy_printer-0.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dict_fancy_printer-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file dict_fancy_printer-0.1.2.tar.gz.

File metadata

  • Download URL: dict_fancy_printer-0.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-62-generic

File hashes

Hashes for dict_fancy_printer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8cd7da4c19f22f7b48d11e6cb17cfb3c28eb392cf9a3e76918c44a71da268ebe
MD5 01e91657209dc40ccb14a27a87af4bab
BLAKE2b-256 f67fa140da4a71ae1e5edc7c5fa1f0abc9b7b00822928e526afa7230a90ff83f

See more details on using hashes here.

File details

Details for the file dict_fancy_printer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: dict_fancy_printer-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.3 Linux/6.8.0-62-generic

File hashes

Hashes for dict_fancy_printer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc25a88ac8947b467e22811c8c6003bed115b6ba07414aea1ace04d1a82d8d48
MD5 7448dfaa2ab460312f4d7e91d6abc1e6
BLAKE2b-256 9fcfbf4b0d30336ae17597f5264c9b70d584e7e3a3e437fae0df9f94e0087ebe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page