Skip to main content

A Python JSON based lightweight Database.

Project description

data

A Simple, Lightweight, Efficent JSON based DataBase for Python

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


The current stable version is v1.6.1

pip install pysondb==1.6.1

Support the project here

Hacktoberfest

While we are accepting pull requests for Hacktoberfest, we will reject any low-quality PR's.

We are accepting PRs for:

  • Packages - updating package versions, adding new packages Documentation updates
  • More features and fixes (Refer here)
  • CLI/API improvements - Redoing the CLI to reduce the usage of CLI packages.
  • We are planning to reduce the project dependencies and remove other unwanted API's.

Checkout the active issues 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.json
  • 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.6.4.tar.gz (15.7 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.6.4-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysondb-1.6.4.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pysondb-1.6.4.tar.gz
Algorithm Hash digest
SHA256 5b5bab73a5d699ecf1ff3602893dddd4ec0e8b46e6072f974bf0d886b522f286
MD5 9a62acda9e80f21c4a64a8de53fbcfa3
BLAKE2b-256 52af78ac3ec71b58753f2938ee633ab1f19351165c0ddc9d7712484653f32de6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysondb-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pysondb-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c1e025ae0f47094ccbd504fc8b992d9b871f4be04d9300231d2ef123044744fc
MD5 d0ea78fe9c3ff786a36f4ffe19aeff70
BLAKE2b-256 080fa86021aaf59fd0b9cf20fa91840b162a704b5cfe0ef76b71f6cfdc11c032

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