Skip to main content

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 and save.

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

jsondatasave-1.5.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

jsondatasave-1.5-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page