tinydb-encrypted-jsonstorage
A TinyDB storage implementation that stores values as encrypted json.
Requirements
Python
OS Dependencies:
- python3, python3-venv, python3-pip
Get Sources
- 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
Build
- follow steps in "Get Sources"
- pip3 install -r requirements-building.txt
- python setup.py bdist_wheel
Test
- follow steps in "Get Sources"
- pip3 install -r requirements-building.txt
- python setup.py test
Install
Pip
- pip install tinydb-encrypted-jsonstorage
Pip + Git
- pip install git+git://github.com/stefanthaler/tinydb-encrypted-jsonstorag.git#egg=tinydb-encrypted-jsonstorage
Git + Local Pip
- Follow steps in "Build"
- pip install ./
Use
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 = ...
db.storage.change_encryption_key("NEW_KEY"))
Other operations
For all the other operations, check the TinyDB manual.
TODO
- documentation coverage + badge https://github.com/google/pybadges
Thanks
- 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.
Metadata
Release files for tinydb-encrypted-jsonstorage 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tinydb_encrypted_jsonstorage-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for tinydb_encrypted_jsonstorage-0.1.2-py3-none-any.whl |
Release files / tinydb_encrypted_jsonstorage-0.1.2-py3-none-any.whl
| Download URL | tinydb_encrypted_jsonstorage-0.1.2-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
048e5b7caf176d19b003f1a7183ad1bac46da0a7f86a6ad9968fee46e4b40c2d
|
|
BLAKE2b-256 checksum How to use checksums |
358cbd5140a12511a8a9b86e1d73c3f5ecb299ad7a329c0ddaf322a3dfee0d95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
|
Security for tinydb-encrypted-jsonstorage 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.