A Python JSON based lightweight Database.
Project description
A Simple, Lightweight, Efficent JSON based DataBase for Python
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
pip install pysondb
Create a database
- You can create a database usinf 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)
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-0.2.4.tar.gz
(7.4 kB
view details)
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 pysondb-0.2.4.tar.gz.
File metadata
- Download URL: pysondb-0.2.4.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9658a3e60367d0548dce62c92e98bf8117d1dbac289102e0ef5b92b8531ad7d7
|
|
| MD5 |
ddc69f3b7dd38e24e70d804c7d1946b0
|
|
| BLAKE2b-256 |
8e3b7e1aca1173a2c962aa43913352f290d0f47842b9a73b206755015ea0d6b7
|
File details
Details for the file pysondb-0.2.4-py3-none-any.whl.
File metadata
- Download URL: pysondb-0.2.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55f52f7476e26872f8ff4be6c0411e34dff63d89a010950fbe63319fed72275c
|
|
| MD5 |
2889e4fa04d733687792604ee4d40030
|
|
| BLAKE2b-256 |
2e52414542e31d20b374b86e55e179a55db18e1c54fccfc25123e45581337ea6
|