prettydiff
prettydiff - diff parsed JSON objects and pretty-print it
$ python3 -m pip install prettydiff
terminal
from prettydiff import print_diff
a = {"a": "hello", "b": True, "c": [1, 3], "d": {"e": {"f": 1}}}
b = {"a": "world", "b": False, "c": [1, 2, 3]}
# to enable colors: $ python3 -m pip install prettydiff[terminal]
print_diff(a, b)
{
- 'a': 'hello',
+ 'a': 'world',
- 'b': True,
+ 'b': False,
'c': [
1,
- 3,
+ 2,
+ 3,
],
- 'd': {
- 'e': {
- 'f': 1,
- },
- },
}
Metadata
Release files for prettydiff 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| prettydiff-0.1.0.tar.gz | 5.0 kB | Without provenance | Details for prettydiff-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| prettydiff-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for prettydiff-0.1.0-py3-none-any.whl |
Total release size: 11.4 kB
Release files / prettydiff-0.1.0.tar.gz
| Download URL | prettydiff-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0e5ffaa20ee7f8a0295732a954c2fbb2ff37471953f8ab8b0122cbe19497e55
|
|
BLAKE2b-256 checksum How to use checksums |
9d5fcaa9c6289b7a96631a3fb3762808e895eab6d8ccb92b15878159a14aab87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / prettydiff-0.1.0-py3-none-any.whl
| Download URL | prettydiff-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
253eea65c5c632219078dffcec5884260b805e200e3cbdb1039f45b2d2bc6d1e
|
|
BLAKE2b-256 checksum How to use checksums |
5a0c0bbf8e8d5e1ad4ed9e5d4891c5ca90ca542430818974e0f80cb70053fb27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for prettydiff 0.1.0
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.