Skip to content

phalt/clientele

Repository files navigation

⚜️ Clientele

Typed API Clients from OpenAPI specs

clientele_logo

Clientele lets you generate fully-typed, functional, API Clients from OpenAPI specs.

It uses modern tools to be blazing fast and type safe.

Plus - there is no complex boilerplate and the generated code is very small.

Features

  • Fully typed API Client using Pydantic.
  • Minimalist and easy to use - the generated code is designed for readability.
  • Choose either sync or async - we support both, and you can switch between them easily.
  • Supports authentication (curently only HTTP Bearer and HTTP Basic auth).
  • Written entirely in Python - no need to install other languages to use OpenAPI.
  • The client footprint is minimal - it only requires httpx and pydantic.
  • Supports your own configuration - we provide an entry point that will never be overwritten.

We're built on:

Install

poetry add clientele

Usage

clientele generate -f path/to/file.json -o my_client/ --asyncio t

Read the docs