- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 1,835 for none (0.07 sec)
-
docs_src/openapi_callbacks/tutorial001.py
from typing import Union from fastapi import APIRouter, FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Invoice(BaseModel): id: str title: Union[str, None] = None customer: str total: float class InvoiceEvent(BaseModel): description: str paid: bool class InvoiceEventReceived(BaseModel): ok: bool invoices_callback_router = APIRouter()
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 1.3K bytes - Viewed (0) -
docs_src/body/tutorial001_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.post("/items/") async def create_item(item: Item):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 271 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial002_py310.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 343 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial002_pv1_py310.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 347 bytes - Viewed (0) -
docs_src/body/tutorial001.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 309 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial001_an_py310.py
from typing import Annotated from fastapi import Cookie, FastAPI from pydantic import BaseModel app = FastAPI() class Cookies(BaseModel): session_id: str fatebook_tracker: str | None = None googall_tracker: str | None = None @app.get("/items/") async def read_items(cookies: Annotated[Cookies, Cookie()]):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 343 bytes - Viewed (0) -
docs_src/cookie_param_models/tutorial001_an_py39.py
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 362 bytes - Viewed (0) -
docs_src/header_param_models/tutorial002_pv1_an_py310.py
from pydantic import BaseModel app = FastAPI() class CommonHeaders(BaseModel): class Config: extra = "forbid" host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: Annotated[CommonHeaders, Header()]):
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 436 bytes - Viewed (0) -
docs/em/docs/python-types.md
đ¯ââī¸ đŧ đ â đ `item` đĒ `int` âī¸ `str`. #### đ˛ `None` đ đĒ đŖ đ đ˛ đĒ âī¸ đ, đ `str`, âī¸ đ âĢī¸ đĒ `None`. đ 3ī¸âŖ.6ī¸âŖ & đ (â đ 3ī¸âŖ.1ī¸âŖ0ī¸âŖ) đ đĒ đŖ âĢī¸ đ & âī¸ `Optional` âĒī¸âĄī¸ `typing` đš. ```Python hl_lines="1 4" {!../../docs_src/python_types/tutorial009.py!} ``` âī¸ `Optional[str]` âŠī¸ `str` đ âĄī¸ đ¨âđ¨ âš đ đ â đâ đ đĒ đ¤ đ đ˛ đ§ `str`, đâ âĢī¸ đĒ đ¤ `None` đââī¸.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.4K bytes - Viewed (0) -
docs_src/body/tutorial002_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.post("/items/") async def create_item(item: Item): item_dict = item.dict() if item.tax: price_with_tax = item.price + item.tax item_dict.update({"price_with_tax": price_with_tax})
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jan 07 14:11:31 UTC 2022 - 429 bytes - Viewed (0)