Skip to main content

A Python JSON and/or YAML 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


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

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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysondb-1.1.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysondb-1.1.6.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for pysondb-1.1.6.tar.gz
Algorithm Hash digest
SHA256 ae3d870a9c844645c9f6181e2afaa92c1f98f3c68280ef7e1de92e27eed24b5a
MD5 f5303281e86dd8767eda058ca7e1cb53
BLAKE2b-256 d6ba9674e6c0c82036488ab136c5a5f3d51ee1c7ff14f1da50392a3da5a77567

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysondb-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for pysondb-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c485c6620e87a7855de96e7d2dcaf81d521d9cf4a0a987959b33d506f594f0d9
MD5 4bf5c1a2eb7ca1ec13ff666c6e7809e7
BLAKE2b-256 a3683263113def54aa769cdbd1b8f7b30cee02b497bb00368f46e20a64e21668

See more details on using hashes here.

Supported by

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