Skip to main content

A Python JSON based lightweight Database.

Project description

data

A Simple, Lightweight, Efficent JSON based DataBase for Python

PyPI version PyPI download day .github/workflows/Build.yml CodeFactor Discord GitHub Repo stars GitHub commit activity


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


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.3.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

pysondb-0.3.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file pysondb-0.3.1.tar.gz.

File metadata

  • Download URL: pysondb-0.3.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for pysondb-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f8fe944c8881759e8c93542c1d5c2d760caa9b9197dbe42baea639c73bef68bd
MD5 04fc7ee38cbb410319d93bde9c06e1f9
BLAKE2b-256 1282ed77cf60ec56a9a9d6384147f2ee6f051dae980e4eddab81e2aa19e0d40b

See more details on using hashes here.

File details

Details for the file pysondb-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: pysondb-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for pysondb-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c15e832499465b00a6d30bf29c1e35c47437fa5fc1b9ea7a51c25fb68926f0a5
MD5 b886c3da23bd9cc6f5cb08f7ab31a849
BLAKE2b-256 d2a2d5b66e3e6eb49c33c23e850db7fc523c165643988556d39f8746fbde3cbf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page