Skip to main content

A simple python module for saving data to JSON files

Project description

PROJECT

JSave is a simple python module for saving data to JSON files.

PyPI - Version PyPI - Python Version PyPI - License

Table of Contents

Install

To install JSave use pip.

pip3 install jsave

Quick Start

To get started with JSave first import functions from jsave.jsave into your project like this.

from jsave.jsave import FUNCTIONS_HERE

To find out what to import, and how to use JSave check out the docs.

Docs

save

The save function is used to save data - dict to a filepath - str.

from jsave.jsave import save

data = {
    "This is some dict in python": "It is very cool"
}

# save data as JSON to file save.json
save(data, "save.json")

read

The read function is used to read data from a filepath - str.

from jsave.jsave import read

print(read("save.json"))
# {"This is some sample data": "Indeed it is"}

Contributing

All types of contibutions are welcome for the JSave project, whether its updating the documentation, reporting issues, or simply mentioning JSave in your projects.

Remember this before contibuting, you should open an Issue if you don't think you can contribute and open a Pull Request if you have a patch for an issue.

Sections:

Reporting Bugs

Before you submit a bug report make sure you have the following information or are using the following things.

  • Make sure you're on the latest version.
  • Make sure its not just on your end (if you were possibly using a python version we dont support).
  • Check issues to see if it has already been reported.
  • Collect the following info about the bug:
    • Stack Trace.
    • OS, Platform and Version (Windows, Linux, macOS, x86, ARM).
    • Possibly your input and the output.
    • Can you reliably reproduce the issue?

If you have all of that prepared you are more than welcome to open an issue for the community to take a look at.

Enchancements

If you'd like to enchance something please read this checklist:

  • Make sure you're on the latest version.
  • Read the docs and find out if what you want to implement is already a feature.
  • Search to see if the enhancement has already been suggested (No need to open a new issue if its already there!).
  • See if your improvment fits the majority of users, if instead it adds minor functionality consider making a plugin library instead.
  • Describe the enchancement in detail, what does it actually do?

Improve Docs

If you'd like to improve the documentation please go over the following:

  • Read the docs first! If it's already there theres no point adding it.
  • Check issues for ideas, issues are a great place to find documentation to add or edit.
  • Provide examples for the area youre writing for (eg. showing a code example of how to use the save function)

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

jsave-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

jsave-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file jsave-1.0.0.tar.gz.

File metadata

  • Download URL: jsave-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v8

File hashes

Hashes for jsave-1.0.0.tar.gz
Algorithm Hash digest
SHA256 38896e7af394fd9cb07b0adb2c203becbb82bc54a7d7fc3b779366dd3c83da05
MD5 13b841cf2ef31e93e8eb9082ea891e24
BLAKE2b-256 bdea93bf52eb9fb7f5013e31da01d75769a417c385afc750695ea91fcfbafcac

See more details on using hashes here.

File details

Details for the file jsave-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: jsave-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.2 Linux/6.6.31+rpt-rpi-v8

File hashes

Hashes for jsave-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5e960cdf6f70bd46866b8e3974f97f534428b72f48084f945d520a6abf34b2a
MD5 8e2bc704885a838e30a4101282aa4e0b
BLAKE2b-256 4730ed7818ac499ccac78b62df32274ac600c382460fedd8e6622a3c01ab5acf

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