koxudaxi/fastapi-code-generator
This code generator creates FastAPI app from an openapi file. observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 98
- Release rhythm 91
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 28.0
- age_days: 2271
- days_rel: 63
- days_push: 16
- n_releases_24m: 7
Adoption not part of the score
1405 stars · 153 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python CLI tool that generates a FastAPI application, including Pydantic models and routers, from an OpenAPI document. It builds on datamodel-code-generator for the model layer and supports custom templates and visitors.
Use cases
- generate a fastapi app from an openapi spec
- scaffold fastapi routes from swagger yaml
- convert openapi file to pydantic v2 models
- generate api server code from openapi 3 document
- bootstrap fastapi project from existing api contract
- create typed fastapi models from schema
When to choose
- you have an OpenAPI/Swagger spec and want a working FastAPI skeleton
- you want Pydantic models generated automatically from the spec
- you need customizable code generation via templates or custom visitors
When to avoid
- you're building a FastAPI app from scratch without an OpenAPI spec
- you need a generic OpenAPI client generator rather than a server app
- you use a framework other than FastAPI
Facets
cli-tool · maturity active
cli api-framework templating web-development backend apis developer-tools cli python cross-platform fastapi openapi pydantic code-generator api-scaffolding code-generation python
2 sources
- readme: https://github.com/koxudaxi/fastapi-code-generator · fetched 2026-08-28 · 84cec4c08413
- registry_pypi: https://pypi.org/pypi/fastapi-code-generator/json · fetched 2026-08-29 · 97630d1c685b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| koxudaxi/fastapi-code-generator | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="koxudaxi/fastapi-code-generator")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem