okyanusoz / pydb

A JSON file-based light Python database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pydb

A JSON file-based light Python database.

Installation

PyDB does NOT require installation(not recommended to do that for now, PyDB in pip is coming soon). Just download pydb.py from this repo.
The installation of cryptography package is required for the PyDB.Encryption class.
pip install cryptography
PyDB is pretty easy to learn. Below is an example.
from pydb import PyDB

db = PyDB("test.json")

db.add("name", "John");
db.commit() # Commit changes to file
print(db.get("name")) # Output: John

About

A JSON file-based light Python database.

License:MIT License


Languages

Language:Python 100.0%