A TinyDB storage implementation that stores values as encrypted json.
- python3, python3-venv, python3-pip
- git clone git@github.com:stefanthaler/tinydb-encrypted-jsonstorage.git
- cd tinydb-encrypted-jsonstorage
- python3 -m venv .env
- . .env/bin/activate.fish
- pip install -r requirements.txt
- follow steps in "Get Sources"
- pip3 install -r requirements-building.txt
- python setup.py bdist_wheel
- follow steps in "Get Sources"
- pip3 install -r requirements-building.txt
- python setup.py test
- pip install tinydb-encrypted-jsonstorage
- pip install git+git://github.com/stefanthaler/tinydb-encrypted-jsonstorag.git#egg=tinydb-encrypted-jsonstorage
- Follow steps in "Build"
- pip install ./
You can use the encrypted storage by adding setting storage parameter of the TinyDB initializer to the EncryptedJSONStorage class.
from tinydb import TinyDB
import tinydb_encrypted_jsonstorage as tae
KEY = "hello"
PATH = ".encrypted_db"
db = TinyDB(encryption_key=KEY, path=PATH, storage=tae.EncryptedJSONStorage)
You can change the encryption key of the storage by accessing the storage property of your TinyDB database.
db = ...
db.storage.change_encryption_key("NEW_KEY"))
For all the other operations, check the TinyDB manual.
- documentation coverage + badge https://github.com/google/pybadges
- Shields.io, for providing the github paypal and the MIT license button: https://shields.io/
- travis-ci.org for providing free continuous integration for open source projects.
- coveralls.io for providing free continuous code coverage reporting for open source projects.