Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

This package helps you convert Python dictionaries into an Gzip compressed, Base64 string for use as a HTTP GET request parameter and reverse it

Project Description


# JSONURI-PY

This package helps you convert Python dictionaries into an Gzip compressed, Base64 string for use as a HTTP GET request parameter and reverse it.

An example of a practical application would be to send JSON data over HTTP GET, e.g. to a static resource small.png,
and harvest the data from access logs instead of running real-time data collection.

**Note**: You should avoid sending sensitive information using this mechanism, even if you're doing it over SSL.

## Equivalent libs/packages:

| Language | Repo |
|----------|-------------------------------------|
| JavaScript | https://github.com/guidj/jsonuri-js |


## Examples:


```python
>>> from jsonuri import jsonuri
>>> data = {"age": 31, "name": "John", "account": {"id": 127, "regions": ["US", "SG"]}}
>>> jsonuri.serialize(data, b64_encode=True, uri_encode=False)
'H4sIANRnb1oC/6tWSkxPVbJSMDbUUVDKS8wFsZW88jPylID8xOTk/NK8EqBQtVJmCpAyNDIHChelpmfm5xUD+dFKocEghcHuSrG1tQCN2YKETAAAAA=='
>>> ser = jsonuri.serialize(data, b64_encode=True, uri_encode=True)
'H4sIAOdnb1oC%2F6tWSkxPVbJSMDbUUVDKS8wFsZW88jPylID8xOTk%2FNK8EqBQtVJmCpAyNDIHChelpmfm5xUD%2BdFKocEghcHuSrG1tQCN2YKETAAAAA%3D%3D'
>>> jsonuri.deserialize(ser)
{'age': 31, 'name': 'John', 'account': {'id': 127, 'regions': ['US', 'SG']}}
```

Release History

This version
History Node

0.2.2

History Node

0.1.25

History Node

0.1.24

History Node

0.1.23

History Node

0.1.22

History Node

0.1.21

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
jsonuri-0.2.2.tar.gz
(7.3 kB) Copy SHA256 Hash SHA256
Source None Jan 29, 2018

Supported By

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 Google Google Cloud Servers DreamHost DreamHost Log Hosting