A Python JSON and/or YAML based lightweight Database.
Project description
A Simple, Lightweight, Efficent JSON based DataBase for Python
The current stable version is v1.1.3
pip install pysondb==1.1.3
Support the project 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
- Image Utils
Install
pip install pysondb
Create a database
- You can create a database using CLI.
pysondb create database_name
- 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
- Programozasi_kornyezetek
- 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.2.1.tar.gz
(12.4 kB
view details)
Built Distribution
File details
Details for the file pysondb-1.2.1.tar.gz
.
File metadata
- Download URL: pysondb-1.2.1.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f1e1523253f4200a7a8c0d5389777e5332b0f07004e2df44a5e055fcb11489 |
|
MD5 | 2aed6ebe6ccdbbae41ed3289c887c6d7 |
|
BLAKE2b-256 | f54b0924d82d4c297d8856cbdee5c3ee2894ea4127daf58792bad29f27ce7b90 |
File details
Details for the file pysondb-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: pysondb-1.2.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e2c5d0d227fa07925397e3a042a9d8f095074cc083d16bbd2bd9b7e697536db |
|
MD5 | bf90a48e99884e832bfee7aad1af1755 |
|
BLAKE2b-256 | c08f654bb3a997694c71164deb2fa6e4ffa918b3c48887804fa7b5e54ab32708 |