https://github.com/jakbin/dbjson
crud operation with database using json.
https://github.com/jakbin/dbjson
database db hacktoberfest hacktoberfest2022 json python
Last synced: 5 months ago
JSON representation
crud operation with database using json.
- Host: GitHub
- URL: https://github.com/jakbin/dbjson
- Owner: jakbin
- License: mit
- Created: 2022-03-20T12:19:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-19T09:04:31.000Z (over 3 years ago)
- Last Synced: 2025-10-05T07:08:09.084Z (9 months ago)
- Topics: database, db, hacktoberfest, hacktoberfest2022, json, python
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DBjson
crud operation with database using json.
[](https://pypi.org/project/dbjsonpy/)
[](https://pepy.tech/project/dbjsonpy)
[](https://pepy.tech/project/dbjsonpy)
## Features
* create data.
* read data.
* delete data
* update data
* search data
## Install
```python
pip install dbjsonpy
```
### Example
minimal example
```python
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](examples/test.py)
## Todo
- [x] update data
- [x] add multiple data
- [x] search data
- [ ] paginate data