Python implementation of jsonurl, an alternative format for JSON data model
Project description
About
This is a python implementation of jsonurl, an alternative text format which encodes the same data model in a way that is more suitable for use in URLs.
This is an incomplete implementation.
Installation
pip install https://github.com/cdleonard/jsonurl-py
The package name is jsonurl_py to avoid confusing with an unrelated jsonurl package on pypi which implements an unrelated syntax. The project name uses a dash in the name for consistency with the existing jsonurl-js and jsonurl-java implementations.
Usage
import jsonurl_py as jsonurl assert jsonurl.loads('(a:1,b:c)') == {'a': 1, 'b': 'c'} assert jsonurl.dumps(dict(a=[1,2])) == '(a:(1,2))'
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
jsonurl-py-0.1.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for jsonurl_py-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c444701d4da28887de48e4a521baf83c6ff617825a02fd899f36677f96aedb |
|
MD5 | 85232cce43688202cd148f3a1cd93250 |
|
BLAKE2b-256 | e7a688fc9115f8dc0885c237944ee9c573ec27dcd9cc78d0badea74f0afb5787 |