Skip to main content

DataExchange : A Python module to work on JSON.

Project description


DataExchange : A Python module to work on JSON.

DataExchange is a Reusable python app which provides many features to work on JSON.


Installation :

You can install DataExchange module from PyPI using pip.

pip install dataexchange


Configurations :

In order to use dataexchange module in python you need to import it.

from dataexchange.json.exchange import JsonExchange  

Features :

1. Re-Name The Keys of JSON Data in Runtime

When JSON data in json file.

from dataexchange.json.exchange import JsonExchange  
jsx = JsonExchange("JSON_File_Name.json")

2. Re-Name The Keys of JSON Data in Runtime

When JSON data come from requests object.

import requests  
from dataexchange.json.exchange import JsonExchange  

req = requests.get("https://cricapi.com/api/matches?apikey=KLuy78452poolnufyBAnb61S2")  
print(type(req.json()))  

jsx = JsonExchange(req.json())  
result = jsx.key_rename(keys={'matches': 'data'})  
print(type(result), result)  

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dataexchange, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size dataexchange-1.0.1-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dataexchange-1.0.1.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page