Metadata-Version: 2.1
Name: jsodb
Version: 1.0.1
Summary: simple json database lib
Author-email: dttric <chudinovd222@gmail.com>
Project-URL: Homepage, https://github.com/dttric/jsodb
Project-URL: Bug Tracker, https://github.com/dttric/jsodb/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# jsodb
Mine database realization that uses .json files.

### How to work with it?
Instalation:
`python3 -m pip install jsodb`

Basic funcs:
```py
from jsodb import jdb
getkeyval("key") # returns key val
addkey("key"=val) # adds keys to json
changekey("key", val) # changes key to new val
createjson("/path/to/file") # new .json file (without decorator)
@json("/path/to/file") # main decorator
```

To use all that functions you need function with decorator, json file will be: opened, edited, saved.

Basic usage:
```py
@json("profile.json")
def func():
	print(getkeyval(balance)) ### 1
	changekey(balance, 10) ### {balance=10}
	addkey(deposit=100) ### {balance=10, deposit=100}
	print(f"{getkeyval(balance)}\n{getkeyval(deposit)}")
	"""
	10
	100
	"""

func() ### changes applied
```
