This package helps handling json files more efficiently and quickly
Project description
Quick Json
This Package will help you deal with json files more quickly and efficiently.
How to Install it?
On Windows:
pip install quickjson
On Linux:
sudo pip3 install quickjson
How to Use it?
Initializing The Package
from quickjson.quickjson import QuickJson
jsonhelper = QuickJson('filename.json') # Provide the Name of the Json File while Initializing
This will initialize QuickJson Class to jsonhelper variable and now you can use it's all functions using the variable.
Reading Data From Json Files
print(jsonhelper.read_json_file())
This will print the contents of json file in the console.
Writing Data to Json FIles
data = {"elite": "john"} # Sample Dictionary
jsohelper.write_json_file(data) # Parsing the dictionary
This will write the dictionary parsed in the json file.
Inserting Element to a List present inside json file
If you want to insert an item to a list present inside json file then use this code
jsonhelper.write_list_json_file('listname', 'element')
This will insert the element into the specific list
For More Information, Visit Documentation.
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
quickjson-0.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for quickjson-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 857578d7990e20bc547a97eab3d4f72a4f1b4445a1f3977b70ecdc2ab3950795 |
|
MD5 | 12b3b9af1249bdccecaa59875ed09016 |
|
BLAKE2b-256 | 2f6a71d17d6167acd12e1935dd3aad6e92bb757dc8767661446a5a66541db570 |