Update README.md
This commit is contained in:
parent
1808070b35
commit
1b566907e0
10
README.md
10
README.md
@ -9,6 +9,12 @@ More information is available in docstrings:
|
|||||||
>>> help(jwrap)
|
>>> help(jwrap)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install jwrap
|
||||||
|
```
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
For example, you can write some data to json file by this:
|
For example, you can write some data to json file by this:
|
||||||
@ -17,7 +23,7 @@ For example, you can write some data to json file by this:
|
|||||||
from jwrap import Jwrap
|
from jwrap import Jwrap
|
||||||
|
|
||||||
j = Jwrap('myfile.json')
|
j = Jwrap('myfile.json')
|
||||||
j.json['mykey'] = 'my value'
|
j.json()['mykey'] = 'my value'
|
||||||
# or: j.ins('mykey', 'my value')
|
# or j.ins('mykey', 'my value')
|
||||||
j.commit() # write data to file
|
j.commit() # write data to file
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user