semvec/pypi-packages huggingface dataset:
dotenv-azd 0.3.0
Python dotenv adapter that loads dotenv key value pairs from Azure Developer CLI (azd)
Requires Python: >=3.9

# dotenv-azd

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

`dotenv-azd` allows seamless integration of [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/) (`azd`) environment variables into your Python applications without the need to manually export them to an `.env` file. This can greatly enhance productivity and reduce potential errors, allowing for a smoother development experience.

It leverages the `azd` CLI and the [python-dotenv](https://pypi.org/project/python-dotenv/) library.

- [Why dotenv-azd](#why-dotenv-azd)
- [Installation](#installation)
- [Usage](#usage)
  - [Basic Usage](#basic-usage)
  - [Override Mode](#override-mode)
  - [Quiet Mode](#quiet-mode)
- [Alternatives](#alternatives)
- [Limitations](#limitations)
- [License](#license)

## Why dotenv-azd

Integrating `azd` environment variables directly into your Python applications can streamline your development process. By avoiding the manual export to `.env` files, you can reduce overhead and minimize mistakes. This is especially useful when switching between different `azd` environments.

## Installation

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

## Usage

### Basic Usage

Create a new AZD env if you don't have one yet and set an initial variable value:

```console
azd init MY_AZD_ENV
azd env set VAR1 OVERRIDE
```

In your Python code:

```python
from dotenv_azd import load_azd_env
from os import getenv, environ

environ['VAR1'] = 'INITIAL'

load_azd_env()

print(getenv('AZURE_ENV_NAME')) # prints 'MY_AZD_ENV', loaded from azd env

print(getenv('VAR1')) # prints 'INITIAL', was already in Python env
```

### Override mode

You can also override variables in Python env:

```python
load_azd_env(override=True)
print(getenv('VAR1')) # prints 'OVERRIDE', loaded from azd env, overriding Python env
```

### Quiet mode

If you want to ignore errors when `azd` is not initialized or no `azd` environment is active, you can use the `quiet` parameter. This is useful when integrating with `azd` while avoiding dependency on it.

```python
load_azd_env(quiet=True)
```

## Alternatives

The traditional approach to integrate `azd` environment variables is to export them to a `.env` file and load that file:

```console
azd env get-values > .env
```

This approach can create variable quoting issues and might lead to stale variables when switching between environments using `azd select`.

## Contributing

Make a PR to the repo. Run `hatch fmt --check` to make sure the code is correctly linted.

## License

`dotenv-azd` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
ampana 0.1.1
A fun Python package that has Vibe.
Requires Python: >=3.13

# Ampana 💅

A fun and sassy Python package that gives you a mix of weather updates, mood vibes, compliments, advice, and a little bit of plan-spiration – all wrapped in personality.

Perfect for pampered souls and main-character energy seekers. 😌✨

---

## 📦 Features

- 🌤 `get_weather()` – Fetch real-time weather based on your location (IP-based).
- 🎧 `get_vibe()` – Get a daily mood/vibe check.
- 🧠 `get_advice()` – Quick advice for your soul (or sass).
- 💖 `get_compliment()` – Feel cute, maybe don't delete later.
- 🗺️ `get_plan()` – Small plans or places you _must_ check out.

---

## Made with ❤️ and extra drama.

## 🚀 Installation

```bash
pip install ampana

```