A Python JSON based lightweight Database.
Project description
A Simple, Lightweight, Efficent JSON based DataBase for Python
The current stable version is v1.5.5
pip install pysondb==1.5.5
Support the project here
Hacktoberfest
While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PR's.
We are accepting PRs for:
- Packages - updating package versions, adding new packages Documentation updates
- More features and fixes (Refer here)
- CLI/API improvements - Redoing the CLI to reduce the usage of CLI packages.
- We are planning to reduce the project dependencies and remove other unwanted API's.
Checkout the active issues here
Features
- Lightweight JSON based database.
- Supports CRUD commands.
- No Database drivers required.
- Unique ID assigned for each JSON document added.
- Strict about Schema of data added.
- Inbuilt CLI to delete,display,create JSON database.
>> from pysondb import db
>> a=db.getDb("path/to/json.json")
>> a.addMany([{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}])
>> a.getAll()
>> [{"name":"pysondb","type":"DB"},{"name":"pysondb-cli","type":"CLI"}]
- See its simple..
Quick Links
- Install
- Example Code
- Command Line Operations
- Adding Data
- Get data
- Search data
- Update Data
- Delete Data
Install
pip install pysondb
Create a database
- You can create a database using CLI.
pysondb create database_name.json
- Or in the python file.
from pysondb import db
a=db.getDb("db.json")
- The above piece of code will create a database with
{data:[]}
in it. - Even if the json file exists there is no problem.
See more Documentation here
What makes pysonDB different
- CLI support to create,delete and display database.
- Unique Id automatically assigned for each JSON data added.
- Schema regularity is checked.
What pysonDB can't do.
- Cannot store images,videos etc.
TODO
- CLI to convert CSV to pysonDB required json.
- Use CSV file in the database.
- Make the database available to use local servers (Flask,Django)
Contributors.
Projects using PysonDB
- my-first-streamlit-app
- PythonChallenge
- Task-Me-Up
- bagel
- prox_community
- USVBachelorProject
- gardenwatering
- cf_scraper
Contributing
Whether reporting bugs, discussing improvements and new ideas or writing extensions: Contributions to pysonDB are welcome! Here's how to get started:
- Join Discord channel Here
- Check for issues or open a issue or open a feature requests.
- Fork the repository on Github
- Create a new branch off the master branch.
- Write a test which shows that the bug was fixed or that the feature works as expected.
- Send a pull request to us and wait till it get merged.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysondb-1.6.0.tar.gz
(15.3 kB
view details)
Built Distribution
pysondb-1.6.0-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file pysondb-1.6.0.tar.gz
.
File metadata
- Download URL: pysondb-1.6.0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c811e069481ed1cd758832752028c53b54075ea9cfc63329ba20c96a1f56293 |
|
MD5 | 094b0e0120d3c86639a4c422293eab4c |
|
BLAKE2b-256 | 3c2634a83909366507c602cf8f18fe9c2493756c2a905c4773992e403469f907 |
File details
Details for the file pysondb-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: pysondb-1.6.0-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef1c469ca17d19bff54034b934552bb14be17dd0b7b44c968843e23abf5e1a3a |
|
MD5 | ed24681a16d961465c9bcbb089b3e611 |
|
BLAKE2b-256 | 563f284373e546891dd4f7a7baa91e205516b7b5be71da01a72f2aa61b29ace0 |