Skip to content

Home

data

A Revamped version of PysonDB. New Schema and super fast.

PyPI version Downloads CodeFactor Discord GitHub Repo stars Downloads


pip install pysondb-v2

The new DB schema

{
    "version": 2,
    "keys" ["a", "b", "c"],
    "data": {
        "384753047545745": {
            "a": 1,
            "b": "something",
            "c": true
        }
    }
}

Features

  • Much better than PysonDB-V1
  • 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 PysonDB
db = PysonDB('test.json')

db.add({
    'name': 'adwaith',
    'age': 4,
    'knows_python': True
})

print(db.get_all())
{'231541323453553701': {'name': 'adwaith', 'age': 4, 'knows_python': True}}
  • See its simple..
Back to top