Metadata-Version: 2.1
Name: azsecrets
Version: 1.0.2
Summary: Set Azure Secrets as environment variables.
Home-page: https://github.com/akshaybabloo/azure-keyvault-secret-env
Author: Akshay Raj Gollahalli
Author-email: akshay@gollahalli.com
License: MIT
Keywords: azure,secrets
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: click (>=7.0)
Requires-Dist: azure-keyvault (>=1.1.0)

# Azure KeyVault Secrets as Environment Variable

Get Azure KeyVault variables ans use them as environment variables.

## Install 

```bash
pip install azsecrets
```

## Usage

You can set environment variables for:

```bash
export AZURE_VAULT_BASE_URL=***
export AZURE_CLIENT_ID=***
export AZURE_SECRET_KEY=***
export AZURE_TENANT_ID=***
```

or send it via the CLI as

```bash
secrets --vault-base-url *** --client-id *** --secret *** --tenant *** env --shell bash
```

Once you have set up the environment variables, just call the CLI:

```bash
secrets env --shell bash
```

You can also use it at as an package my importing it:

```python
from azsecrets import AzureSecrets

print(AzureSecrets().get_secret("SECRET-NAME"))
print(AzureSecrets().get_secrets(["SECRET-NAME-1", "SECRET-NAME-1"]))
```

## Contributions

All contributions are welcome.


