Skip to main content

jprint

A simple tool for pretty priting json strings and python dictionaries to the console.

Python Dictionary Example

from jprint import jprint


example_dict = {
    "name": "John Doe",
    "age": 30,
    "city": "New York",
    "hobbies": ["reading", "traveling", "photography"]
}

jprint(example_dict)

JSON String Example

from jprint import jprint

json_string = '''
    {
        "name": "Alice",
        "age": 32,
        "email": "alice@example.com",
        "address": {
            "street": "123 Main St",
            "city": "Los Angeles",
            "state": "CA",
            "zip": "90012"
        },
        "phone_numbers": [
            {
                "type": "home",
                "number": "555-1234"
            },
            {
                "type": "work",
                "number": "555-5678"
            }
        ]
    }
    '''

jprint(json_string, indent=2)

Json Image

Under The Covers

jprint makes use of the pygmyents library for colored output and json.dumps() for other formatting. You can pass jprint any of the parameters that you would pass to json.dumps

Metadata

Release files for jprint 1.6

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

Source distribution (sdist)

Source distribution for jprint 1.6
File Size Uploaded Provenance Actions
jprint-1.6.tar.gz 2.1 kB Without provenance Details for jprint-1.6.tar.gz

Built distribution (wheel)

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

Total release size: 4.5 kB

Release files / jprint-1.6.tar.gz

Download URL jprint-1.6.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9e9ac45de56819013452240efb57f4f0a602f9ce89a3363d60c63edb501887cb
BLAKE2b-256 checksum
How to use checksums
c359b877f8f8ed6437ec7992a3187fb0dd449a71e1aafefcbe9bad8dd458ea27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.2 Darwin/22.4.0

Release files / jprint-1.6-py3-none-any.whl

Download URL jprint-1.6-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e309157f25510430b6884c0930f48023c43b6ab2d3f56399ebab738c62fc3133
BLAKE2b-256 checksum
How to use checksums
c969205a6efe167ea014635b2c1162ddd73cd691d921701563ff9541d1fdf75f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.2 Darwin/22.4.0

Security for jprint 1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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