Metadata-Version: 2.3
Name: opendal-config
Version: 0.2.0
Summary: A tiny library to create OpenDAL operators from pydantic models
Author: Florian Daude
Author-email: Florian Daude <floriandaude@hotmail.fr>
License: Apache-2.0
Requires-Dist: opendal>=0
Requires-Dist: pydantic>=2
Requires-Python: >=3.12
Project-URL: Repository, https://gitlab.com/daude_f/opendal-config
Description-Content-Type: text/markdown

# OpenDAL Config

### A tiny library to create OpenDAL operators from pydantic models.

This library contains:

- A pydantic model for each OpenDAL service config (`<Service>Config`).
- A type to represent any OpenDAL service config (`Config`).
- 2 functions to create operators (`create_operator`, `create_async_operator`).

Typical use:

- First add `Config` in you existing config system
- Then create operators using `create_operator` or `create_async_operator`.
- So you have a typesafe way to create operators without defining anything yourself.

### How to re-generate

```sh
python src/tools/gen.py > src/opendal_config/__init__.py
```
