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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70a486b700b7a6693c448def50d10a94a446f03b8419972487f7c43fe6b190fc |
|
MD5 | 80435390d66f8967750fc047e441915c |
|
BLAKE2b-256 | 51fdd72de5ccd8ac03ec1e9f2cfcd7e8dc17cb4a15031bc696eb6d2aa90a73e6 |