Skip to main content

A TinyDB storage implementation that uses JSON and encryption.

Project description

Donate Build Status Coverage Status Documentation Status

License: MIT


A TinyDB storage implementation that stores values as encrypted json.



OS Dependencies:

  • python3, python3-venv, python3-pip

Get Sources

  • git clone
  • cd tinydb-encrypted-jsonstorage
  • python3 -m venv .env
  • . .env/bin/
  • pip install -r requirements.txt


  • follow steps in "Get Sources"
  • pip3 install -r requirements-building.txt
  • python bdist_wheel


  • follow steps in "Get Sources"
  • pip3 install -r requirements-building.txt
  • python test



  • pip install tinydb-encrypted-jsonstorage

Pip + Git

  • pip install git+git://

Git + Local Pip

  • Follow steps in "Build"
  • pip install ./


Create database

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)

Change encryption key

You can change the encryption key of the storage by accessing the storage property of your TinyDB database.

db = ..."NEW_KEY"))

Other operations

For all the other operations, check the TinyDB manual.



  •, for providing the github paypal and the MIT license button:
  • for providing free continuous integration for open source projects.
  • for providing free continuous code coverage reporting for open source projects.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tinydb-encrypted-jsonstorage, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size tinydb_encrypted_jsonstorage-0.1.2-py3-none-any.whl (10.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page