Typed API Clients from OpenAPI schemas
Project description
⚜️ Clientele
Typed API Clients from OpenAPI schemasClientele 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
andpydantic
. - 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!)
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
clientele-0.4.4-py3-none-any.whl
(17.6 kB
view hashes)
Close
Hashes for clientele-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e568b2d05ccec590f1ae0fa10d46e048afcfddac854388d8be719afb9484698 |
|
MD5 | 9bd8abce21a77c6f5d8ab8760d63659c |
|
BLAKE2b-256 | aa1983db344f4a71b03528527c1e3b971e5ef60381c36c217a73a9f11ccaca00 |