Skip to main content

⚜️ Clientele

Typed API Clients from OpenAPI schemas

Package version Supported Python versions

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

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.
  • Incredibly easy to write mocked tests using respx.

We're built on:

Install

pipx add clientele

Usage

clientele generate -u https://raw.githubusercontent.com/phalt/clientele/main/example_openapi_specs/best.json -o my_client/ --asyncio t

(That line will actually work, try it!)

Read the docs

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clientele-0.4.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clientele-0.4.4-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file clientele-0.4.4.tar.gz.

File metadata

  • Download URL: clientele-0.4.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-78-generic

File hashes

Hashes for clientele-0.4.4.tar.gz
Algorithm Hash digest
SHA256 1dc1c82c3139730095b3e5a0ce9af5f0218fcf1630471c45e270b9eff0235d3e
MD5 41ea1f3a58a1c4c9517e11ac6f0770e2
BLAKE2b-256 ed9d310ad382fc0c3be6a302e933f21d97dc7ec2f4be743585ab0eb316c9d1a8

See more details on using hashes here.

File details

Details for the file clientele-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: clientele-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-78-generic

File hashes

Hashes for clientele-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4e568b2d05ccec590f1ae0fa10d46e048afcfddac854388d8be719afb9484698
MD5 9bd8abce21a77c6f5d8ab8760d63659c
BLAKE2b-256 aa1983db344f4a71b03528527c1e3b971e5ef60381c36c217a73a9f11ccaca00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page