Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 704 for tabs (0.03 sec)

  1. docs/zh/docs/tutorial/background-tasks.md

    **FastAPI** 知道在每种情况下该做什么以及如何复用同一对象,因此所有后台任务被合并在一起并且随后在后台运行:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="14  16  23  26"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/request-files.md

    👉 🚫 🚫 **FastAPI**, ⚫️ 🍕 🇺🇸🔍 🛠️.
    
    ///
    
    ## 📦 📁 📂
    
    👆 💪 ⚒ 📁 📦 ⚙️ 🐩 🆎 ✍ & ⚒ 🔢 💲 `None`:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="9  17"
    {!> ../../docs_src/request_files/tutorial001_02.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="7  14"
    {!> ../../docs_src/request_files/tutorial001_02_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. docs_src/query_param_models/tutorial002_pv1_an.py

    class FilterParams(BaseModel):
        class Config:
            extra = "forbid"
    
        limit: int = Field(100, gt=0, le=100)
        offset: int = Field(0, ge=0)
        order_by: Literal["created_at", "updated_at"] = "created_at"
        tags: List[str] = []
    
    
    @app.get("/items/")
    async def read_items(filter_query: Annotated[FilterParams, Query()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 522 bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/security/get-current-user.md

    //// tab | 파이썬 3.7 이상
    
    ```Python hl_lines="25"
    {!> ../../docs_src/security/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 파이썬 3.10 이상
    
    ```Python hl_lines="23"
    {!> ../../docs_src/security/tutorial002_py310.py!}
    ```
    
    ////
    
    ## 유저 가져오기
    
    `get_current_user`는 토큰을 `str`로 취하고 Pydantic `User` 모델을 반환하는 우리가 만든 (가짜) 유틸리티 함수를 사용합니다.
    
    //// tab | 파이썬 3.7 이상
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. docs_src/response_model/tutorial001_01_py39.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: list[str] = []
    
    
    @app.post("/items/")
    async def create_item(item: Item) -> Item:
        return item
    
    
    @app.get("/items/")
    async def read_items() -> list[Item]:
        return [
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Jan 07 13:45:48 UTC 2023
    - 507 bytes
    - Viewed (0)
  6. docs_src/body_nested_models/tutorial005.py

    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: Set[str] = set()
        image: Union[Image, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 517 bytes
    - Viewed (0)
  7. docs_src/body_nested_models/tutorial006_py39.py

    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: Union[str, None] = None
        price: float
        tax: Union[float, None] = None
        tags: set[str] = set()
        images: Union[list[Image], None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 519 bytes
    - Viewed (0)
  8. docs_src/body_nested_models/tutorial007_py310.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: HttpUrl
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        images: list[Image] | None = None
    
    
    class Offer(BaseModel):
        name: str
        description: str | None = None
        price: float
        items: list[Item]
    
    
    @app.post("/offers/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 520 bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/cookie-params.md

    # 🍪 🔢
    
    👆 💪 🔬 🍪 🔢 🎏 🌌 👆 🔬 `Query` & `Path` 🔢.
    
    ## 🗄 `Cookie`
    
    🥇 🗄 `Cookie`:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="3"
    {!> ../../docs_src/cookie_params/tutorial001.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="1"
    {!> ../../docs_src/cookie_params/tutorial001_py310.py!}
    ```
    
    ////
    
    ## 📣 `Cookie` 🔢
    
    ⤴️ 📣 🍪 🔢 ⚙️ 🎏 📊 ⏮️ `Path` & `Query`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs/ru/docs/deployment/manually.md

    //// tab | Uvicorn
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --host 0.0.0.0 --port 80
    
    <span style="color: green;">INFO</span>:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
    ```
    
    </div>
    
    ////
    
    //// tab | Hypercorn
    
    <div class="termy">
    
    ```console
    $ hypercorn main:app --bind 0.0.0.0:80
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top