Use secrets from keepass in your BundleWrap repo.
Installation
pip install bundlewrap-keepass
Setup
Create .bw_keepass.cfg in your home. It should contain two lines: First
line should contain a path to your keepass file, second line may contain
your password.
If you're not comfortable putting your password into a plain-text file,
you may also use BW_KEEPASS_PASSWORD in your environment variables.
You may also set BW_KEEPASS_FILE in your environment to overwrite the
location of your keepass file. Please note that if you set the file path
in your environment, you must also set the password.
Usage
All function calls accept lists or strings as their arguments. If you
need to traverse into subdirectories in your keepass file, you have to
use | as separator when not using lists.
For example, if you want to access the Password for 'mysite', which is located inside the directory 'bundlewrap', you can use either one of these:
bwkeepass.password('bundlewrap|mysite')
bwkeepass.password(['bundlewrap', 'mysite'])
Example nodes.py:
import bwkeepass as keepass
nodes = {
'somenode': {
'metadata': {
'my_secret': keepass.password('my_identifier'),
},
},
}
Available Fields/Methods are:
bwkeepass.password()for passwordsbwkeepass.username()for usernamesbwkeepass.url()for urlsbwkeepass.notes()for notes
Note: This will insert a proxy object into your metadata, the actual secret is not retrieved until you convert it to a string (e.g. by inserting it in a template or calling str() explicitly).
© 2021 Franziska Kunsmann
Metadata
Release files for bundlewrap-keepass 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 | Provenance | Actions |
|---|---|---|---|---|
| bundlewrap-keepass-0.1.0.tar.gz | 15.6 kB | Without provenance | Details for bundlewrap-keepass-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bundlewrap_keepass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bundlewrap_keepass-0.1.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / bundlewrap-keepass-0.1.0.tar.gz
| Download URL | bundlewrap-keepass-0.1.0.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f8d55b48f1522a4a9d485deedfcca0c11a69979832d19bbbf5a95d60df9202e
|
|
BLAKE2b-256 checksum How to use checksums |
87db8c0e132de992d7a80aea586685575ee9ebcc4563c763c63238471243a1ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / bundlewrap_keepass-0.1.0-py3-none-any.whl
| Download URL | bundlewrap_keepass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2d2fe46c327fa5d0785c31647e2cdbbf45b0191ebffe897865b1fda72508c82
|
|
BLAKE2b-256 checksum How to use checksums |
fcd1381f2a016739732cdb96098b6f924f3e9fc1f1c486f02b0323391282412a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for bundlewrap-keepass 0.1.0
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.