- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 726 for iter (0.02 seconds)
-
docs_src/body/tutorial003_py310.py
from fastapi import FastAPI from pydantic import BaseModel class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None app = FastAPI() @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 330 bytes - Click Count (0) -
docs_src/encoder/tutorial001_py39.py
from pydantic import BaseModel fake_db = {} class Item(BaseModel): title: str timestamp: datetime description: Union[str, None] = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 461 bytes - Click Count (0) -
docs_src/response_directly/tutorial001_py39.py
from fastapi.responses import JSONResponse from pydantic import BaseModel class Item(BaseModel): title: str timestamp: datetime description: Union[str, None] = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 505 bytes - Click Count (0) -
tests/test_tutorial/test_extra_models/test_tutorial004.py
} } }, "components": { "schemas": { "Item": { "title": "Item", "required": ["name", "description"], "type": "object", "properties": { "name": {"title": "Name", "type": "string"},Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 2.2K bytes - Click Count (0) -
tests/test_tutorial/test_dataclasses/test_tutorial003.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 7.1K bytes - Click Count (0) -
tests/test_tutorial/test_response_status_code/test_tutorial001_tutorial002.py
client = TestClient(mod.app) return client def test_create_item(client: TestClient): response = client.post("/items/", params={"name": "Test Item"}) assert response.status_code == 201, response.text assert response.json() == {"name": "Test Item"} def test_openapi_schema(client: TestClient): response = client.get("/openapi.json") assert response.status_code == 200, response.textCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 3.3K bytes - Click Count (0) -
docs_src/additional_responses/tutorial004_py310.py
from pydantic import BaseModel class Item(BaseModel): id: str value: str responses = { 404: {"description": "Item not found"}, 302: {"description": "The item was moved"}, 403: {"description": "Not enough privileges"}, } app = FastAPI() @app.get( "/items/{item_id}", response_model=Item, responses={**responses, 200: {"content": {"image/png": {}}}},Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 669 bytes - Click Count (0) -
docs/distributed/decom.sh
policy_count=$(./mc admin policy list myminio/ | wc -l) ## create a warm tier instance (minio server /tmp/xltier/{1...4}/disk{0...1} --address :9002 2>&1 >/dev/null) & export MC_HOST_mytier="http://minioadmin:minioadmin@localhost:9002/" ./mc ready myminio ./mc mb -l myminio/bucket2 ./mc mb -l mytier/tiered ## create a tier and set up ilm policy to tier immediatelyCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon May 27 19:17:46 GMT 2024 - 6.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial008b_an_py39.py
def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id not in data: raise HTTPException(status_code=404, detail="Item not found") item = data[item_id] if item["owner"] != username: raise OwnerError(username)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 26 20:37:34 GMT 2023 - 775 bytes - Click Count (0) -
docs/ko/docs/advanced/templates.md
/// ## 템플릿 작성하기 그런 다음 `templates/item.html`에 템플릿을 작성할 수 있습니다. 예를 들면: ```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### 템플릿 컨텍스트 값 다음과 같은 HTML에서: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...이는 전달한 "컨텍스트" `dict`에서 가져온 `id`를 표시합니다: ```Python {"id": id} ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 3.7K bytes - Click Count (0)