Skip to main content

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


Download files

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

Source Distribution

jdiff-0.0.1.tar.gz (16.4 kB view hashes)

Uploaded Source

Built Distribution

jdiff-0.0.1-py3-none-any.whl (21.7 kB view hashes)

Uploaded Python 3

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