Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ FRAMEWORKS.yaml
*/*/.Dockerfile*
*/*/.Makefile
*/*/ip.txt
*/*/ip-*.txt
venv
*/*/cid.txt
*/*/cid-*.txt
*/.Makefile

/lib/**/*.cr
Expand Down Expand Up @@ -62,3 +64,7 @@ __pycache__/
.vscode
.idea
.zed

# Claude Code local config
.claude/
.mcp.json
3 changes: 3 additions & 0 deletions python/fastapi/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ framework:
- hypercorn
- daphne
- granian

language:
version: 3.14
14 changes: 9 additions & 5 deletions python/fastapi/server.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
from fastapi import FastAPI
from fastapi import FastAPI, APIRouter
from starlette.responses import PlainTextResponse

app = FastAPI()
router = APIRouter()


@app.get("/")
@router.get("/")
async def index():
return PlainTextResponse(content="")


@app.get("/user/{id}")
@router.get("/user/{id}")
async def get_user(id: int):
return PlainTextResponse(content=f"{id}".encode())


@app.post("/user")
@router.post("/user")
async def create_user():
return PlainTextResponse(content="")


app = FastAPI()
app.include_router(router)
5 changes: 1 addition & 4 deletions python/fastapi_startkit/config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
framework:
website: fastapi-startkit.github.io
github: fastapi-startkit/fastapi-startkit-framework
version: 0.46
version: 0.47

engines:
- uvicorn
- hypercorn
- daphne
- granian

language:
version: 3.13
2 changes: 1 addition & 1 deletion python/fastapi_startkit/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ requires = ["flit_core"]
name = 'server'
version = '1.0.0'
description = "Simple benchmark implementation"
dependencies = ["fastapi-startkit[fastapi]>=0.46,<0.47"]
dependencies = ["fastapi-startkit[fastapi]==0.47.0"]