Resolve env vars from secret stores.
Project description
envresolve
Resolve env vars from secret stores.
Quick start
from envresolve import expand_variables
env = {"VAULT": "corp-kv", "SECRET": "db-password"}
print(expand_variables("akv://${VAULT}/${SECRET}", env))
# akv://corp-kv/db-password
Secret resolution with Azure Key Vault:
import envresolve
envresolve.register_azure_kv_provider() # requires `pip install envresolve[azure]`
print(envresolve.resolve_secret("akv://corp-vault/db-password"))
More examples and API details: https://osoekawaitlab.github.io/envresolve/
Development
Running Tests
nox -s tests # Run all tests with coverage
nox -s quality # Type checking and linting
See nox documentation for more commands.
Live Azure Tests
Optional integration tests against real Azure Key Vault. See Contributing Guide for setup instructions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envresolve-0.1.1.tar.gz.
File metadata
- Download URL: envresolve-0.1.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1329d17e45eaa5c896d6378f462f95cb1f4b1e848237e071069c9fc839c8aca
|
|
| MD5 |
c765c554ea00f992f8dc36bef9376468
|
|
| BLAKE2b-256 |
30b2810e0254104480d2382463740612ce7af8735b4570ebcef5615ca1570aa1
|
File details
Details for the file envresolve-0.1.1-py3-none-any.whl.
File metadata
- Download URL: envresolve-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd18a6d1d8ff1f49c00f91acb9fe79c4541aa3791b45068abe45b4dbc0c89292
|
|
| MD5 |
14426830126fb8fab8df22fa14ecf76f
|
|
| BLAKE2b-256 |
c988c8f1d427e2a1e505fb6dabb29b715f606aac2a183a57bfad6774f8903650
|