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
Metadata
Release files for dbjsonpy 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dbjsonpy-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / dbjsonpy-1.0.7-py3-none-any.whl
| Download URL | dbjsonpy-1.0.7-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5236a0ce317b17feda1b55deb66b6653eb8cca625e064c7d0b23337e5fd33857
|
|
BLAKE2b-256 checksum How to use checksums |
7be1e7510be880450ad096928f47746a0101e5b1172fa94a26f039fd0b24d29c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|