Skip to main content

⚜️ 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 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

clientele-0.2.0.tar.gz (9.0 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.2.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

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

Hashes for clientele-0.2.0.tar.gz
Algorithm Hash digest
SHA256 186f6d53f9d7fba6dc4b6b646cf53778cd66a25cafe4573fa6b7294969700728
MD5 364db7b39a7d75370e08842af3a61e0a
BLAKE2b-256 f185e0f0d89112330287fe8ec94512deaa01577892586f7bbe110ce11ae575c1

See more details on using hashes here.

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

Hashes for clientele-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a06e011bb0a4756e38964b068d6ab61c012fa5aa72aabed23e6ce0be9572143
MD5 8028247a05716cb1cc6bcbd359445367
BLAKE2b-256 31f7cb279567e101ab451c166f2d58a1af0e56356137522a136344917ebc356f

See more details on using hashes here.

Release history Release notifications | RSS feed

2.3.0

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

1.11.1

2 files

1.11.0

2 files

1.10.0

2 files

1.9.2

2 files

1.9.1

2 files

1.9.0

2 files

1.8.1

2 files

1.8.0

2 files

1.7.1

2 files

1.7.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.0

2 files

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.3

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page