Simple implementation of the json-reference spec
Project description
.. image:: https://drone.io/bitbucket.org/eodolphi/json-reference/status.png
:target: https://drone.io/bitbucket.org/eodolphi/json-reference/latest
JSON Reference
=============
Simple implementation of the json-pointer spec:
http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-00
Usage
------------
JSON reference makes it possible to retrieve (parts of) json-objects
>>> import json_reference
>>> json_reference.Reference('http://json-schema.org/draft-04/schema#/definitions').get()
It is also possible to register references for offline access
>>> json_reference.register('http://localhost/test', {'test': 'bli'})
>>> json_reference.Reference('http://localhost/test').get()
{'test': 'bli'}
:target: https://drone.io/bitbucket.org/eodolphi/json-reference/latest
JSON Reference
=============
Simple implementation of the json-pointer spec:
http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-00
Usage
------------
JSON reference makes it possible to retrieve (parts of) json-objects
>>> import json_reference
>>> json_reference.Reference('http://json-schema.org/draft-04/schema#/definitions').get()
It is also possible to register references for offline access
>>> json_reference.register('http://localhost/test', {'test': 'bli'})
>>> json_reference.Reference('http://localhost/test').get()
{'test': 'bli'}
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
json_reference-0.1.0.tar.gz
(2.1 kB
view details)
File details
Details for the file json_reference-0.1.0.tar.gz
.
File metadata
- Download URL: json_reference-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c022e394aabe2fc49e69f988b620b1dcf1356bd825c638b1c0a8b888ac5ec01 |
|
MD5 | 2863953a98a95a9c71aa6e95390194e8 |
|
BLAKE2b-256 | 657c6f0accb64a6d83ea9287174f3417d9c61fb9798c1cf030d72a0cf287348c |