What is PickleDB
PickleDB is a lightweight, fast, and simple database based on json module. It's BSD licensed!
Oh-My-PickleDB
Oh-My-PickleDB is an improved version of PickleDB with more database concepts than original one. Most important concepts are:
- Cryptography module - Encrypt/Decrypt database content using FERNET encoding
- Code improvements - More readable documentation, improved code, etc...
- Database Conversions - Works with bytes, json or str databases
- More flexibility - Save/load database as bytes, json or str, you decide!
- Statistics Tools - HopperDB works as a data analyzer
- Frameworks - Pre-defined databases like UsersDB, ProductsDB, etc...
Oh-My-PickleDB is fun and easy to use
from my_pickledb import PickleDB
database = PickleDB("test.db", load=True, auto_dump=True) # PickleDB object
db.set('key', 'value') # Creates new key and value
db.get('key') # Must return 'value'
db.dump() # Must save database to file on specified path
Easy to Install
# Using python pip
$ pip install oh-my-pickledb
# Using git
$ git clone https://github.com/tory1103/oh-my-pickledb.git
$ cd oh-my-pickledb
$ pip install -r requirements.txt