Skip to main content

multiple_loader Logo

PyPI PyPI - Python Version PyPI - Format PyPI - License Downloads GitHub issues
GitHub followers Twitter


the latest version of 1.0.2🎉

Changes in the new version of 1.0.2

- Release. -


drint

drint is a library that outputs dict type objects in python to console and other applications, fully formatted and displayed. This will improve debugging, output, and other tasks.


Description of drint

drint is a library that outputs dict type objects in python to console and other applications, fully formatted and displayed. In general, dict is displayed in python using pprint, etc., but this library can output dict in a more complete form than pprint.


More about drint

drint displays dict types in perfect alignment. Below is a test dict and an example of its display.

from dict_viewer.drint import drint

test_d3 = {
   "e": "EEE",
   "f": "FFF",
   "g": "GGG"
}

test_d2 = {
   "c": test_d3,
   "d": "DDD" 
}

test_d1 = {
   "a": "AAA",
   "b": test_d2
}

# drint
drint(test_d1)

The result is as follows:

{
    "a": AAA
    "b": {
        "c": {
            "e": EEE
            "f": FFF
            "g": GGG
        }
        "d": DDD
    }
}

Compared to the output with pprint and print, it is clearly aligned.

# print
{'a': 'AAA', 'b': {'c': {'e': 'EEE', 'f': 'FFF', 'g': 'GGG'}, 'd': 'DDD'}}

# pprint
{'a': 'AAA', 'b': {'c': {'e': 'EEE', 'f': 'FFF', 'g': 'GGG'}, 'd': 'DDD'}}

# drint
{
    "a": AAA
    "b": {
        "c": {
            "e": EEE
            "f": FFF
            "g": GGG
        }
        "d": DDD
    }
}

Also, with drint, indentation can be specified.

Optional arguments, etc

The list of arguments, etc. that can be used in drint is as follows.

from dict_viewer.drint import drint

drint(
   dict,      # Required argument
   indent     # defalut value is 4
)

Getting Started

Installing

Latest drint via PyPI (pip install)

PyPI Downloads

pip install drint

Install by pip from github

pip install git+https://github.com/Domzou-kun/drint.git

or install via SSH

pip install git+git://github.com:Domzou-kun/drint.git

Authors

Domzou

link

Version history

If you want to know about past versions, please refer to version history.

LICENSE

drint has a MIT license, as found in the LICENSE file.

Release files for drint 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drint 1.0.3
File Size Uploaded
drint-1.0.3.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drint 1.0.3
File Interpreter ABI Platform
drint-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / drint-1.0.3.tar.gz

Download URL drint-1.0.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f938644f15c0b8cb2e12959307b172f4da95d01cbbcd183ea4aec718ae27b012
BLAKE2b-256 checksum
How to use checksums
93ce084f9819becfe2b64a315da2158db84a039a36f1c1fbb873c173d7c71364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release files / drint-1.0.3-py3-none-any.whl

Download URL drint-1.0.3-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b28055411253f86841ef97e45b81ed93d5d1e12f5ed1bbaaf97ec14279b5e66
BLAKE2b-256 checksum
How to use checksums
b394bded7f901b9828c98da3d06fab0f301f91121549ae3ebd34c3ba7e0c9952
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page