Metadata-Version: 2.4
Name: envresolve
Version: 0.1.1
Summary: Resolve env vars from secret stores.
Author: osoken
License-Expression: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dotenv>=1.1.1
Provides-Extra: azure
Requires-Dist: azure-identity>=1.19.0; extra == "azure"
Requires-Dist: azure-keyvault-secrets>=4.9.0; extra == "azure"
Dynamic: license-file

# envresolve

Resolve env vars from secret stores.

## Quick start

```python
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:

```python
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

```bash
nox -s tests           # Run all tests with coverage
nox -s quality         # Type checking and linting
```

See [nox documentation](https://nox.thea.codes/) for more commands.

### Live Azure Tests

Optional integration tests against real Azure Key Vault. See [Contributing Guide](docs/contributing.md#live-azure-tests) for setup instructions.
