Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adotsdot-0.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

adotsdot-0.0.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for adotsdot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fd72d8e5c02d87ec77552a2234173094e73b9ca5f2887209a7bff79767c57734
MD5 0081144601d7a364438f0085d430c095
BLAKE2b-256 7d7f8053f379d0a29f7a1ae865b9a1d2c77aef3feac2e62c6d950ccb2709017f

See more details on using hashes here.

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

Hashes for adotsdot-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b617f87f48d7c11c3e7c77e86a51905dece3492f2cbc1c30d89c89adfe2478ea
MD5 522f3e75cfaa19121d6dfee431d2dd4a
BLAKE2b-256 6d199e954e5416e7a681f0252c290653ae1edb562e859b8e47f76bcabe8e77a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page