{"repo":"koxudaxi/fastapi-code-generator","free":true,"listed":false,"github":"https://github.com/koxudaxi/fastapi-code-generator","clone":"git clone https://github.com/koxudaxi/fastapi-code-generator.git","description":"This code generator creates FastAPI app from an openapi file.","language":"Python","stars":1404,"topics":["fastapi","openapi","generator","python","pydantic"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"fastapi-code-generator Generate a FastAPI application from an OpenAPI document. 📣 💼 Maintainer update: Open to opportunities. 🔗 koxudaxi.dev Documentation The docs site is the source of truth for user-facing documentation: - Overview - CLI Reference - Supported Formats - Development & Contributing Use this README as a quick start. The full examples, templating details, and development workflow live in docs/ . Installation Quick Start fastapi-code-generator uses datamodel-code-generator to build the model layer. See the overview guide for a complete end-to-end example, custom templates, custom visitors, and router generation. Command Help Snapshot This block is generated from the current CLI so the README and docs overview stay aligned. For tested option scenarios and examples, use the CLI reference page. Common Tasks - Generate a single-file app from an OpenAPI spec: fastapi-codegen --input openapi.yaml --output app - Generate router modules for larger applications: fastapi-codegen --input openapi.yaml --output app --template-dir modular template --generate-routers - Limit router regeneration to specific tags: fastapi-codegen --input openapi.yaml --output app --template-dir modular template --generate-routers --specify-tags \"Wild Boars, Fat Cats\" - Target Pydantic v2 output: fastapi-codegen --input openapi.yaml --output app --output-model-type pydantic v2.BaseModel Further Reading - Overview for the full walkthrough and generated output example - CLI Reference for option-b","default_branch":null,"files":null,"tree":[],"storefront":"/r/koxudaxi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/koxudaxi/fastapi-code-generator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}