Metadata-Version: 2.1
Name: inspari_config
Version: 0.1.0
Summary: Inspari configuration utilities
Author: emilhe
Author-email: emil.h.eriksen@gmail.com
Requires-Python: >=3.13,<4.0
Classifier: Programming Language :: Python :: 3
Requires-Dist: azure-identity (>=1.19.0,<2.0.0)
Requires-Dist: azure-keyvault (>=4.2.0,<5.0.0)
Requires-Dist: pydantic-settings (>=2.6.1,<3.0.0)
Requires-Dist: python-dotenv (>=1.0.1,<2.0.0)
Description-Content-Type: text/markdown

This repository provides Python configuration utilities.

### Usage

The most common usage pattern is to create a `config.py` file that _defines_ the configuration. The configuration itself is parsed from environment variables. They are typically read from a `.env` file during local development.

A minimal example is bundled, with the configuration defined in `example_config.py`, a few variables in `example.env`, and the typical access pattern (i.e. how settings are access in application code) illustrated in `example_usage.py`.

### Development

Create a new Python environment with all dependencies installed,

```bash
poetry install
```

That's it! You can validate that the environment is setup correctly by running the tests,

```bash
poetry run coverage run -m pytest
```

### Deployment

Build the project via Poetry,

```bash
poetry build
```

and push it to pypi,

```bash
poetry publish
```


