JSON serializable data comparator library.
Project description
adotsdot (Almost Surely)
Purpose
Provide the ability to obtain the differences between two JSON serializable Python dictionaries (e.g., configuration files) while treating lists as unordered.*
* Supporting this functionality requires that the dictionaries in a list of dictionaries have a a field that can be used as a unique marker across all elements in the list.
Usage
Assuming prev_state and curr_state are JSON serializable Python dictionaries,
from adotsdot import diff
node = diff(prev_state, curr_state)
will generate the root of a tree of nodes that represent the changes in state.
This information can be displayed in the terminal via the str procedure or transformed into a JSON serializable Python dictionary via node.as_dict().
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 adotsdot-0.0.2.tar.gz.
File metadata
- Download URL: adotsdot-0.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd72d8e5c02d87ec77552a2234173094e73b9ca5f2887209a7bff79767c57734
|
|
| MD5 |
0081144601d7a364438f0085d430c095
|
|
| BLAKE2b-256 |
7d7f8053f379d0a29f7a1ae865b9a1d2c77aef3feac2e62c6d950ccb2709017f
|
File details
Details for the file adotsdot-0.0.2-py3-none-any.whl.
File metadata
- Download URL: adotsdot-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b617f87f48d7c11c3e7c77e86a51905dece3492f2cbc1c30d89c89adfe2478ea
|
|
| MD5 |
522f3e75cfaa19121d6dfee431d2dd4a
|
|
| BLAKE2b-256 |
6d199e954e5416e7a681f0252c290653ae1edb562e859b8e47f76bcabe8e77a1
|