crud operation with database using json.
Project description
DBjson
crud operation with database using json.
Features
- create data.
- read data.
- delete data
- update data
- search data
Install
pip install dbjsonpy
Example
minimal example
from dbjson import DBjson
db = DBjson('sqlite:///test.db')
class User(db.Model):
name = db.Column(db.String)
# insert data
add_data = {"name": "Jak","city": "india"}
print(db.add(User, add_data))
# read all data
print(db.getall(User))
see full example here
Todo
- update data
- add multiple data
- search data
- paginate data
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbjsonpy-1.0.6.tar.gz
(4.1 kB
view hashes)