Skip to content

๐Ÿ”€ Async support

Clientele API supports both async and sync functions.

They can even be mixed in together if you prefer.

Async and sync example

from clientele import api as clientele_api
from .my_config import Config
from .my_models import BookResponse, CreateBookResponse, CreateBookRequest

client = clientele_api.APIClient(config=Config())

@client.post("/books")