Wrapper for easy interacting with JSON files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gd 1b566907e0 Update README.md 11 months ago
.gitignore init 11 months ago
LICENSE init 11 months ago
README.md Update README.md 11 months ago
jwrap.py init 11 months ago
setup.py init 11 months ago

README.md

jwrap

jwrap — is a single-file micro-library that implements JSON wrapper. Its mission is to make interacting with JSON a little bit easier without writing extra code.

More information is available in docstrings:

>>> import jwrap
>>> help(jwrap)

Installation

pip install jwrap

Quickstart

For example, you can write some data to json file by this:

from jwrap import Jwrap

j = Jwrap('myfile.json')
j.json()['mykey'] = 'my value'
# or j.ins('mykey', 'my value')
j.commit()  # write data to file