⚜️ Clientele
Typed API Clients from OpenAPI specs
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 tiny.
- Choose either sync (default) or async - we support both.
- Generates authentication code for you (curently only supports HTTP Bearer auth)
- Written entirely in Python - no need to install other languages to use OpenAPI.
We're built on:
Install
poetry add clientele
Usage
From URLs
clientele generate -u http://URL_TO_OPEN_API.json -o output/
From files
clientele generate -f path/to/file.json -o output/
Async Client
clientele generate -f path/to/file.json -o output/ --asyncio t
Authentication
If your OpenAPI spec provides security information for the following authentication methods:
- HTTP Bearer
Then clientele will provide you information on the environment variables you need to set to make this work during the generation. For example:
Please set
* MY_CLIENT_AUTH_USER_KEY
* MY_CLIENT_AUTH_PASS_KEY
environment variable to use basic authentication
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clientele-0.2.0.tar.gz.
File metadata
- Download URL: clientele-0.2.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.3.1 CPython/3.8.10 Linux/5.15.0-76-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
186f6d53f9d7fba6dc4b6b646cf53778cd66a25cafe4573fa6b7294969700728
|
|
| MD5 |
364db7b39a7d75370e08842af3a61e0a
|
|
| BLAKE2b-256 |
f185e0f0d89112330287fe8ec94512deaa01577892586f7bbe110ce11ae575c1
|
File details
Details for the file clientele-0.2.0-py3-none-any.whl.
File metadata
- Download URL: clientele-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.3.1 CPython/3.8.10 Linux/5.15.0-76-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a06e011bb0a4756e38964b068d6ab61c012fa5aa72aabed23e6ce0be9572143
|
|
| MD5 |
8028247a05716cb1cc6bcbd359445367
|
|
| BLAKE2b-256 |
31f7cb279567e101ab451c166f2d58a1af0e56356137522a136344917ebc356f
|