Initial commit
This commit is contained in:
BIN
fastapi/__pycache__/main.cpython-314.pyc
Normal file
BIN
fastapi/__pycache__/main.cpython-314.pyc
Normal file
Binary file not shown.
15
fastapi/main.py
Normal file
15
fastapi/main.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from typing import Union
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
def read_root():
|
||||
return {"Hello": "World"}
|
||||
|
||||
|
||||
@app.get("/items/{item_id}")
|
||||
def read_item(item_id: int, q: Union[str, None] = None):
|
||||
return {"item_id": item_id, "q": q}
|
||||
40
fastapi/requirements.txt
Normal file
40
fastapi/requirements.txt
Normal file
@@ -0,0 +1,40 @@
|
||||
annotated-doc==0.0.4
|
||||
annotated-types==0.7.0
|
||||
anyio==4.12.0
|
||||
certifi==2025.11.12
|
||||
click==8.3.1
|
||||
dnspython==2.8.0
|
||||
email-validator==2.3.0
|
||||
fastapi==0.124.2
|
||||
fastapi-cli==0.0.16
|
||||
fastapi-cloud-cli==0.6.0
|
||||
fastar==0.8.0
|
||||
h11==0.16.0
|
||||
httpcore==1.0.9
|
||||
httptools==0.7.1
|
||||
httpx==0.28.1
|
||||
idna==3.11
|
||||
Jinja2==3.1.6
|
||||
markdown-it-py==4.0.0
|
||||
MarkupSafe==3.0.3
|
||||
mdurl==0.1.2
|
||||
pydantic==2.12.5
|
||||
pydantic_core==2.41.5
|
||||
Pygments==2.19.2
|
||||
python-dotenv==1.2.1
|
||||
python-multipart==0.0.20
|
||||
PyYAML==6.0.3
|
||||
rich==14.2.0
|
||||
rich-toolkit==0.17.0
|
||||
rignore==0.7.6
|
||||
sentry-sdk==2.47.0
|
||||
shellingham==1.5.4
|
||||
starlette==0.50.0
|
||||
typer==0.20.0
|
||||
typing-inspection==0.4.2
|
||||
typing_extensions==4.15.0
|
||||
urllib3==2.6.1
|
||||
uvicorn==0.38.0
|
||||
uvloop==0.22.1
|
||||
watchfiles==1.1.1
|
||||
websockets==15.0.1
|
||||
Reference in New Issue
Block a user