A light-weight library to compare structured output from network devices show commands.
Project description
jdiff
jdiff is a lightweight Python library allowing you to examine structured data. jdiff provides an interface to intelligently compare JSON data objects and test for the presence (or absence) of keys. You can also examine and compare corresponding key-values.
The library heavily relies on JMESPath for traversing the JSON object and finding the values to be evaluated. More on that here.
Installation
Install from PyPI:
pip install jdiff
Use cases
jdiff has been developed around diffing and testing structured data returned from APIs and other Python modules and libraries (such as TextFSM). Our primary use case is the examination of structured data returned from networking devices. However, we found the library fits other use cases where structured data needs to be operated on, and is especially useful when working or dealing with data returned from APIs.
Documentation
Documentation is hosted on Read the Docs at jdiff Documentation.
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 jdiff-0.0.1.tar.gz.
File metadata
- Download URL: jdiff-0.0.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9ef13c791e97fa3bddf8d20eb2ce04b572e39d8404123af2eea98738d3bd259
|
|
| MD5 |
4ab749d52c5a66a15d0a00bcf7a7de46
|
|
| BLAKE2b-256 |
3f77eb67f91804330d8ca921c18841d91ac192b4e6c1ef907c9829e7fa32d599
|
File details
Details for the file jdiff-0.0.1-py3-none-any.whl.
File metadata
- Download URL: jdiff-0.0.1-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665a75947dc3531efeb0917b830515bbe2d1b50b2619b88eeaca16cc03561f6f
|
|
| MD5 |
021c9f7427ef789ba943957e0ccff5bd
|
|
| BLAKE2b-256 |
0c4fe190d0e692a461c12932050873844ed0be72b4784e0960bd0c5fd5fd20d5
|