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
File details
Details for the file adotsdot-0.0.1.tar.gz
.
File metadata
- Download URL: adotsdot-0.0.1.tar.gz
- Upload date:
- Size: 2.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 | ba1f1c752799192dc02e2b5e8a9dd8803768b4d017101d4ddc9c6b2c58083586 |
|
MD5 | 37c04e4ba8e017081d1c4c3fbdc0e349 |
|
BLAKE2b-256 | 8d3f4dbad55c400ce28dadf76335d5310d91de7b223d947e2a1a5cae5ab5c647 |
File details
Details for the file adotsdot-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: adotsdot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 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 | 111cd0178dce032217fcfd31126a8a1fea3b46044695a576944e6490b3c6d762 |
|
MD5 | b0d550f94d537db76eeefcb075bc4f8d |
|
BLAKE2b-256 | aaeed6b46961803dc0d8f2fe908086ba2f0faf601d5e1862428b99d4ff57a99a |