Skip to main content

jprint2

Print Python objects as colorized, formatted JSON.

Example

Installation

pip install jprint2

Usage

def jprint(*objects: Any, indent: bool = True) -> None:
   ...
>>> from jprint2 import jprint
>>> jprint("a", "b", "c")
[
  "a",
  "b",
  "c"
]
>>> jprint({"name": "Mark", "mood": 10})
{
  "name": "Mark",
  "mood": 10
}
>>> jprint({"name": "Mark", "age": 30}, indent=False)
{"name": "Mark", "age": 30}

License

MIT License

Author

Mark Lidenberg marklidenberg@gmail.com

Metadata

Release files for jprint2 0.4.1

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

Source distribution (sdist)

Source distribution for jprint2 0.4.1
File Size Uploaded
jprint2-0.4.1.tar.gz 52.6 kB Details

Built distribution (wheel)

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

Total release size: 55.8 kB

Release files / jprint2-0.4.1.tar.gz

Download URL jprint2-0.4.1.tar.gz
Size 52.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d77434cbfed9439a712ff39f23d10e13e23ba6f108a953926c03c1c693a2f81
BLAKE2b-256 checksum
How to use checksums
4b1b49f0a617f23a282d5e67fb520a57cc0b9e0d782750081d17e526732654a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release files / jprint2-0.4.1-py3-none-any.whl

Download URL jprint2-0.4.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ce1463cca07db71544caadcc94aa34e34609cce99757be7118950a7c1550f82b
BLAKE2b-256 checksum
How to use checksums
ed24fb2f294730a14b0b7822f234a1052c4c0b26f4586d2e73cac649c6702235
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.2

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

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