Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A json dereferencing tool.

Project description

jsonderef

A json dereferencing library for python.

Json pointers evaluation is compliant with rfc 6901 (https://tools.ietf.org/html/rfc6901).

Installation

Best way is to use pip.

pip install jsonderef

Usage

from jsonderef import JsonDeref

document = {
  "key": "value",
  "ref": {"$ref": "#/key"},
  "array_ref": [ {"$ref": "#/key"}],
  "nested_ref": { "nest": {"$ref": "#/nested_ref"}}
}
dereferencer = JsonDeref(document)

print dereferencer.deref(max_deref_depth=5)

Tests

Clone the repo, install dependencies and run nose.

virtualenv env
. env/bin/activate

pip install -r requirements.txt

nosetests tests.py

Project details


Release history Release notifications

This version
History Node

1.0.0

History Node

0.1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
jsonderef-1.0.0.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Aug 4, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page