# openapi-generators/openapi-python-client

Generate modern Python clients from OpenAPI

Repository: https://github.com/openapi-generators/openapi-python-client
Canonical: https://ross.abutalabs.com/products/openapi-python-client
Language: Python
License: MIT
License Family: permissive
Topics: openapi, openapi-python-client, python3, generator, rest-api, python, fastapi, openapi-document, openapi3, openapi31
Last push: 2026-08-26T11:50:30+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 2391, "days_push": 7, "days_rel": 95, "gap_med": 22.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1985, forks 291 (observed 2026-08-28T04:06:02.593958+00:00)

## What it is
A Python CLI tool that generates modern, type-annotated Python client libraries from OpenAPI 3.0 and 3.1 documents. It uses Jinja2 templates and produces code leveraging dataclasses and type hints for a strong developer experience.

## Use cases
- generate a python client from an openapi spec
- create typed api client for rest api
- convert openapi 3 document to python sdk
- auto-generate http client code from swagger json
- generate python library for consuming an api

## When to choose
- you have an OpenAPI 3.0 or 3.1 document and want a Python client
- you want type-annotated, dataclass-based generated code
- you prefer a Python-based generator that is easy to extend with custom Jinja2 templates

## When to avoid
- your API is described by OpenAPI 2.x / Swagger without converting it first
- you need full OpenAPI feature coverage, as some features are not yet supported
- you need clients in languages other than Python

## Facets
- artifact type: cli-tool
- maturity: active
- function: http-client, cli, api-framework
- domain: developer-tools, apis, web-development
- platform: python, cli, cross-platform
- tags: openapi, code-generator, rest-client, api-client, openapi3, jinja2-templates, type-annotations, code-generation, automation

## Member repositories
- openapi-generators/openapi-python-client (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:02.593958+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:03:17.796741+00:00, confidence not recorded.
  - readme: https://github.com/openapi-generators/openapi-python-client (fetched 2026-08-28T04:06:02.593958+00:00, sha dd3f383ab700)
  - registry_pypi: https://pypi.org/pypi/openapi-python-client/json (fetched 2026-08-29T10:43:01.181417+00:00, sha f19d8731281f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
