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.4.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsondatasave-1.4-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file jsondatasave-1.4.tar.gz.

File metadata

  • Download URL: jsondatasave-1.4.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jsondatasave-1.4.tar.gz
Algorithm Hash digest
SHA256 b7ec11b66435316b9030d079020fa442d495e8ab642a4938e1d829d57805955f
MD5 3c935423dcd090657ad4b17e410d677e
BLAKE2b-256 4c046059bfcf26744d77029447b42f869dac2f1253017f3f3a337a3c20384e5d

See more details on using hashes here.

File details

Details for the file jsondatasave-1.4-py3-none-any.whl.

File metadata

  • Download URL: jsondatasave-1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for jsondatasave-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 70a486b700b7a6693c448def50d10a94a446f03b8419972487f7c43fe6b190fc
MD5 80435390d66f8967750fc047e441915c
BLAKE2b-256 51fdd72de5ccd8ac03ec1e9f2cfcd7e8dc17cb4a15031bc696eb6d2aa90a73e6

See more details on using hashes here.

Supported by

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