Data Vault 🔒
Store and encrypt sensitive data in your git repo.
Installation
Pick your poison:
pip install dihi-datavaultthendatavaultpoetry add dihi-datavaultthenpoetry run datavaultpipx install dihi-datavaultthenpipx run datavault
Usage
First, create a new vault.
datavault new path/to/vault
This command will...
- Provide you with a secret to use when encrypting your files
- Create a folder at
path/to/vaultwhere you place files you wish to be encrypted - Create a
path/to/vault/.encrypteddirectory to store the encrypted files along with a manifest which tracks the state of files in the vault - Create a
path/to/vault/.gitignorefile which will ignore the unencrypted files
You're now free to add files to your new vault and encrypt them:
echo "apple" > path/to/vault/apple.txt
echo "banana" > path/to/vault/banana.txt
datavault inspect
datavault encrypt
You can also clear out the contents of the vault as needed...
datavault clear-decrypted
datavault clear-encrypted
Now lets say you've just pulled the repo and have none of the original files...
datavault decrypt
Development
Useful commands:
poetry run pytestto run the testspoetry publish -r testpypiandpoetry publish -r testpypito test the deploymentpoetry version X.Y.Zto bump the version, thengit tag vX.Y.Zandgit push --tagspoetry publishto release
Metadata
Release files for dihi-datavault 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dihi-datavault-0.1.0.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dihi_datavault-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / dihi-datavault-0.1.0.tar.gz
| Download URL | dihi-datavault-0.1.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1931525cdfc72591ae92ed936111f11dd09d9f49414661977d82b87db42417d5
|
|
BLAKE2b-256 checksum How to use checksums |
1a1de3c9cd69982ce0bca9f49dcfa83b81b75aff2f39011ecb8f1c6f3751d2a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.10.3 Darwin/21.6.0
|
Release files / dihi_datavault-0.1.0-py3-none-any.whl
| Download URL | dihi_datavault-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a03c8a5baecec31ae9b421a26ed20f8b7d7d314e28395262309f35eae3c4ec0
|
|
BLAKE2b-256 checksum How to use checksums |
9926a4d7fee8891bf0b7a64dc9db333b8a77f4e74b077b18f9bbcb41520a90a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.14 CPython/3.10.3 Darwin/21.6.0
|