Facilitating the process to store JSON data
Project description
jsondatasave
Documentation
Introduction
jsondatasave
is a simple Python library that facilitates the process of storing and retrieving JSON data. It provides an intuitive interface to read and write JSON data to and from files.
Installation
To install jsondatasave
, you can use pip
:
pip install jsondatasave
Features
- Simple JSON data reading and writing.
- Minimalistic API with just two main functions:
load
andsave
.
Functions
load(FileName)
This function reads a JSON file and returns its content as a Python dictionary.
Parameters:
FileName
(str
): The path to the JSON file that you wish to read.
Returns:
dict
: The content of the JSON file as a Python dictionary.
Example:
data = load("sample.json")
print(data)
save(Data, Filename)
This function writes a Python dictionary to a JSON file.
Parameters:
Data
(dict
): The Python dictionary that you wish to save to a file.Filename
(str
): The path to the file where the data should be saved.
Returns:
dict
: The same Python dictionary that was provided as input.
Example:
data = {"name": "John", "age": 30}
save(data, "output.json")
Dependencies
Currently, there are no external dependencies for this library. The comment in setup.py
regarding 'hashl' is not related to the provided functions.
License
jsondatasave
is licensed under the MIT license.
Author
Created by YourAverageDev.
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
Built Distribution
Hashes for jsondatasave-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7524d81a8b425887d78972f61ee52bc14c9623821a5307043675491920f79e88 |
|
MD5 | 8986610f50beff24b3187c381a644424 |
|
BLAKE2b-256 | a4189ac781516599417ed413b65ba59713f78e9eb88ec14ffdc77108f5723e38 |