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


Thanks Peter Heise (@degenhard) for the Contribution

The current stable version is v0.6.0

pip install pysondb==0.6.0

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)

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-0.7.4.tar.gz (9.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-0.7.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysondb-0.7.4.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pysondb-0.7.4.tar.gz
Algorithm Hash digest
SHA256 efb853a81c2594f77818d36962467fb82c5e347a5b8a4bb10b0ba0f0b002950f
MD5 0ff579d273bfe0c4b9e46630fb5ba35b
BLAKE2b-256 0ae212924970492edd6d76c9420f6c39a1eab58f713bede4652e85dc5ea9b402

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysondb-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for pysondb-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a340d9fd3e4c140a3677827227237335eb6ec8b7f15e1777ca2a48b6a60bf73
MD5 c807e825cd3388bf9a023b081505b0df
BLAKE2b-256 dfe6bf27d166dc8260e15a4a62c788059ea09764e5fb818d3619f4a7c506a906

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