Metadata-Version: 2.3
Name: dotenv-azd
Version: 0.0.4
Summary: Python dotenv adapter that loads dotenv key value pairs from Azure Developer CLI (azd)
Project-URL: Documentation, https://github.com/cedricvidal/dotenv-azd#readme
Project-URL: Issues, https://github.com/cedricvidal/dotenv-azd/issues
Project-URL: Source, https://github.com/cedricvidal/dotenv-azd
Author-email: Cedric Vidal <cedric.vidal@gmail.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: python-dotenv
Description-Content-Type: text/markdown

# dotenv-azd

[![PyPI - Version](https://img.shields.io/pypi/v/dotenv-azd.svg)](https://pypi.org/project/dotenv-azd)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dotenv-azd.svg)](https://pypi.org/project/dotenv-azd)

This library provides a Python [python-dotenv](https://pypi.org/project/python-dotenv/) wrapper function that loads dotenv key value pairs from the currently selected [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/) (azd) environment.

- [Installation](#installation)
- [Usage](#usage)
- [License](#license)

## Installation

```console
pip install dotenv-azd
```

## Usage

Create a new AZD env if you don't have one yet:

```
azd env new
```

In your Python code:
```
from dotenv_azd import load_azd_env
from os import getenv

load_azd_env()
print(getenv('AZURE_ENV_NAME'))
```

## License

`dotenv-azd` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
