Simple JSON printer for Python - print colorized, formatted JSON with one function
Project description
jprint2
Print Python objects as colorized, formatted JSON.
Usage
>>> 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
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
jprint2-0.4.0.tar.gz
(40.1 kB
view details)
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 jprint2-0.4.0.tar.gz.
File metadata
- Download URL: jprint2-0.4.0.tar.gz
- Upload date:
- Size: 40.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a84cac156021681024fc845781c84177abc3436b79d6f60902b9de41b7033d1
|
|
| MD5 |
5f48aced978880c7796a1853b4a06655
|
|
| BLAKE2b-256 |
008e2fdb850df373f07e51292277e3ccfbb84f5604df470fedbfda14645c2e52
|
File details
Details for the file jprint2-0.4.0-py3-none-any.whl.
File metadata
- Download URL: jprint2-0.4.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd14204820f0c05262dab36b706dd9e0b8840d9824a63c9220381d47d3f0373
|
|
| MD5 |
5e71c2d83a88e823c87be58f8dc7948a
|
|
| BLAKE2b-256 |
a8806796888aa94c811e8432d7149542f4f5b4703b603a8d09c5565df31ee068
|