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
Metadata
Release files for jsonderef 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jsonderef-1.0.0.tar.gz | 3.6 kB | Without provenance | Details for jsonderef-1.0.0.tar.gz |
Release files / jsonderef-1.0.0.tar.gz
| Download URL | jsonderef-1.0.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eea34b820bda4bf6d666f067a7bd3b6977f72e50c40ef34e0436f8e1be207a26
|
|
BLAKE2b-256 checksum How to use checksums |
e6a208143127209a9e53b122f8452d368df6ec71b7aa2750b8037ee94473702d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jsonderef 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.