Skip to main content

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


Download files

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

Source Distribution

envresolve-0.1.1.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envresolve-0.1.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

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

Hashes for envresolve-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e1329d17e45eaa5c896d6378f462f95cb1f4b1e848237e071069c9fc839c8aca
MD5 c765c554ea00f992f8dc36bef9376468
BLAKE2b-256 30b2810e0254104480d2382463740612ce7af8735b4570ebcef5615ca1570aa1

See more details on using hashes here.

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

Hashes for envresolve-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd18a6d1d8ff1f49c00f91acb9fe79c4541aa3791b45068abe45b4dbc0c89292
MD5 14426830126fb8fab8df22fa14ecf76f
BLAKE2b-256 c988c8f1d427e2a1e505fb6dabb29b715f606aac2a183a57bfad6774f8903650

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page