Skip to content

[Template] Extract and refresh the FastAPI template into a standalone repository #1183

Closed
common-grants/cg-api-template-fastapi
#1

Description

@SnowboardTechie

Summary

ADR 0029 (#1089) maintains Express, Hono, and FastAPI as three framework-specific API templates in standalone repositories. #332 covers Express and #1152 covers Hono. This ticket covers FastAPI.

Extract templates/fast-api/ into common-grants/cg-api-template-fastapi under the common-grants org, following the existing common-grants/cg-api-template-hono template repository, and refresh it against supported published packages: it currently pins common-grants-sdk ^0.4.0 against a published 0.8.1. The migration is not a copy. The template must pass its replacement checks before the monorepo copy is removed (see the [Monorepo] Remove the root templates/ ticket).

Implement ADR 0029 Decisions #3–5 for FastAPI, including the standalone-template support contract. Hono's automation is a useful reference. Define the supported SDK range and record the checks that verify it before removing the monorepo copy. Automated contract validation is tracked in #1239 and does not gate removal.

Licensing: the monorepo is a US government work under CC0 1.0. Carry that dedication with the extracted code and add no new copyright claim; templates/fast-api/pyproject.toml declares no license today, so set it explicitly.

Acceptance criteria

Metadata

Metadata

Labels

pythonIssue or PR related to Python toolingtemplateIssue or PR related to CommonGrants templates

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions