Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A json dereferencing tool.

Project Description

jsonderef

A json dereferencing tool for python.

Currently only local references are supported but file and remote references are comming soon.

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)
Release History

Release History

This version
History Node

0.1.0

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting