az-envs
Create .env files from Azure Key Vault secrets using your local Azure CLI credentials.
Installation
pip install az-envs
Or from source:
pip install git+https://github.com/dillonjohnson/az-envs.git
Prerequisites
-
Azure CLI installed and logged in:
az login -
Appropriate permissions to read secrets from the target Key Vault(s)
Usage
Generate .env from a Key Vault
az-envs generate <vault-name> -o .env
Options:
-o, --output- Output file path (default:.env)--prefix- Only include secrets with this prefix--no-normalize- Keep original secret names (don't convert toENV_VARformat)--no-header- Don't include a header comment
List Key Vaults in a resource group
az-envs list <resource-group> -s <subscription-id>
Secret Name Conversion
By default, Key Vault secret names are converted to standard environment variable format:
my-secret-namebecomesMY_SECRET_NAME
Use --no-normalize to keep the original names.
Examples
# Generate .env from a vault named "myapp-secrets"
az-envs generate myapp-secrets
# Generate only secrets starting with "DB-"
az-envs generate myapp-secrets --prefix DB-
# List all vaults in a resource group
az-envs list my-resource-group -s 12345678-1234-1234-1234-123456789012
Metadata
Release files for az-envs 0.1.2
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 | |
|---|---|---|---|---|
| az_envs-0.1.2.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| az_envs-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / az_envs-0.1.2.tar.gz
| Download URL | az_envs-0.1.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1266fc67031bd19cc211cfe701532aa2880c439c8666f1025f905768e9d65671
|
|
BLAKE2b-256 checksum How to use checksums |
102b812c40d9d06ba550204a90dcbefab209df9be2cf6ca3d7cff6dd6d9ac028
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / az_envs-0.1.2-py3-none-any.whl
| Download URL | az_envs-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5845c974f72ac1c0b50afbb6f61d7f4e676f82ee938d4c485981ad6e0c137ea8
|
|
BLAKE2b-256 checksum How to use checksums |
6bf03561bff17b00debd2effda46b56db15cdf7551d69352be919b7f1cc60fc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for az-envs 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.