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.get_all(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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbjsonpy-1.0.7-py3-none-any.whl.
File metadata
- Download URL: dbjsonpy-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5236a0ce317b17feda1b55deb66b6653eb8cca625e064c7d0b23337e5fd33857
|
|
| MD5 |
722a6ff24b70955e24c5d9258c603583
|
|
| BLAKE2b-256 |
7be1e7510be880450ad096928f47746a0101e5b1172fa94a26f039fd0b24d29c
|