Skip to main content

A JSON helper for Python

Project description

Jthon

This is a utility to make working with JSON files easier.

Installation

pip install jthon

Example

from jthon import Jthon

'''Creates or reads a json file if it already exists and Passes a list as the datatype. The default datatype is a dict'''

file = Jthon('json_file') # Enter the name of the JSON file. If the file exists then the data attribute will be the contents of the file.

file.data['key'] = 'value' # Add a key and value to the data attribute

file.save() # The current state of the data attribute will be saved to JSON file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jthon, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size jthon-0.5.0-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size jthon-0.5.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page