jwrap/README.md

29 lines
544 B
Markdown
Raw Permalink Normal View History

2021-03-08 07:11:45 +03:00
# 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)
```
2021-03-09 02:42:56 +03:00
## Installation
```
pip install jwrap
```
2021-03-08 07:11:45 +03:00
## Quickstart
For example, you can write some data to json file by this:
```python
from jwrap import Jwrap
j = Jwrap('myfile.json')
2021-03-09 02:42:56 +03:00
j.json()['mykey'] = 'my value'
# or j.ins('mykey', 'my value')
2021-03-08 07:11:45 +03:00
j.commit() # write data to file
```