Search Options

Results per page
Sort
Preferred Languages
Advance

Results 741 - 750 of 2,000 for Fastapi (0.08 sec)

  1. fastapi/datastructures.py

        needed for non-async code.
    
        Read more about it in the
        [FastAPI docs for Request Files](https://fastapi.tiangolo.com/tutorial/request-files/).
    
        ## Example
    
        ```python
        from typing import Annotated
    
        from fastapi import FastAPI, File, UploadFile
    
        app = FastAPI()
    
    
        @app.post("/files/")
        async def create_file(file: Annotated[bytes, File()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. docs/en/docs/reference/middleware.md

    Read more about them in the [FastAPI docs for Middleware](https://fastapi.tiangolo.com/advanced/middleware/).
    
    ::: fastapi.middleware.cors.CORSMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.cors import CORSMiddleware
    ```
    
    ::: fastapi.middleware.gzip.GZipMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.gzip import GZipMiddleware
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 991 bytes
    - Viewed (0)
  3. docs/em/docs/deployment/server-workers.md

    ๐Ÿšฅ ๐Ÿ‘† โš™๏ธ ๐Ÿ“ฆ, ๐Ÿ–ผ โฎ๏ธ โ˜ โš–๏ธ Kubernetes, ๐Ÿ‘ค ๐Ÿ”œ ๐Ÿ’ฌ ๐Ÿ‘† ๐ŸŒ… ๐Ÿ”ƒ ๐Ÿ‘ˆ โญ ๐Ÿ“ƒ: [FastAPI ๐Ÿ“ฆ - โ˜](docker.md){.internal-link target=_blank}.
    
    ๐ŸŽฏ, ๐Ÿ•โ” ๐Ÿƒ ๐Ÿ”› **Kubernetes** ๐Ÿ‘† ๐Ÿ”œ ๐ŸŽฒ **๐Ÿšซ** ๐Ÿ’š โš™๏ธ ๐Ÿ & โ†ฉ๏ธ ๐Ÿƒ **๐Ÿ‘ Uvicorn ๐Ÿ› ๏ธ ๐Ÿ“ ๐Ÿ“ฆ**, โœ‹๏ธ ๐Ÿ‘ค ๐Ÿ”œ ๐Ÿ’ฌ ๐Ÿ‘† ๐Ÿ”ƒ โšซ๏ธ โช ๐Ÿ‘ˆ ๐Ÿ“ƒ.
    
    ///
    
    ## ๐Ÿ โฎ๏ธ Uvicorn ๐Ÿ‘จโ€๐Ÿญ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/path-params.md

    /// check
    
    ๐Ÿ”„, โฎ๏ธ ๐Ÿ‘ˆ ๐ŸŽ ๐Ÿ ๐Ÿ†Ž ๐Ÿ“„, **FastAPI** ๐Ÿค ๐Ÿ‘† ๐Ÿง, ๐ŸŽ“ ๐Ÿงพ (๐Ÿ› ๏ธ ๐Ÿฆ ๐ŸŽš).
    
    ๐Ÿ‘€ ๐Ÿ‘ˆ โžก ๐Ÿ”ข ๐Ÿ“ฃ ๐Ÿ”ข.
    
    ///
    
    ## ๐Ÿฉ-โš“๏ธ ๐Ÿ’ฐ, ๐ŸŽ› ๐Ÿงพ
    
    &amp; โ†ฉ๏ธ ๐Ÿ— ๐Ÿ”— โšช๏ธโžก๏ธ <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md" class="external-link" target="_blank">๐Ÿ—„</a> ๐Ÿฉ, ๐Ÿ“ค ๐Ÿ“š ๐Ÿ”— ๐Ÿงฐ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/websockets.md

    ```Python hl_lines="2  6-38  41-43"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    ## ๅˆ›ๅปบ `websocket`
    
    ๅœจๆ‚จ็š„ **FastAPI** ๅบ”็”จ็จ‹ๅบไธญ๏ผŒๅˆ›ๅปบไธ€ไธช `websocket`๏ผš
    
    ```Python hl_lines="1  46-47"
    {!../../docs_src/websockets/tutorial001.py!}
    ```
    
    /// note | "ๆŠ€ๆœฏ็ป†่Š‚"
    
    ๆ‚จไนŸๅฏไปฅไฝฟ็”จ `from starlette.websockets import WebSocket`ใ€‚
    
    **FastAPI** ็›ดๆŽฅๆไพ›ไบ†็›ธๅŒ็š„ `WebSocket`๏ผŒๅชๆ˜ฏไธบไบ†ๆ–นไพฟๅผ€ๅ‘ไบบๅ‘˜ใ€‚ไฝ†ๅฎƒ็›ดๆŽฅๆฅ่‡ช Starletteใ€‚
    
    ///
    
    ## ็ญ‰ๅพ…ๆถˆๆฏๅนถๅ‘้€ๆถˆๆฏ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. tests/test_dependency_cache.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    counter_holder = {"counter": 0}
    
    
    async def dep_counter():
        counter_holder["counter"] += 1
        return counter_holder["counter"]
    
    
    async def super_dep(count: int = Depends(dep_counter)):
        return count
    
    
    @app.get("/counter/")
    async def get_counter(count: int = Depends(dep_counter)):
        return {"counter": count}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. docs_src/websockets/tutorial002_an.py

    from typing import Union
    
    from fastapi import (
        Cookie,
        Depends,
        FastAPI,
        Query,
        WebSocket,
        WebSocketException,
        status,
    )
    from fastapi.responses import HTMLResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. docs_src/websockets/tutorial002_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import (
        Cookie,
        Depends,
        FastAPI,
        Query,
        WebSocket,
        WebSocketException,
        status,
    )
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    html = """
    <!DOCTYPE html>
    <html>
        <head>
            <title>Chat</title>
        </head>
        <body>
            <h1>WebSocket Chat</h1>
            <form action="" onsubmit="sendMessage(event)">
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  9. docs/ja/docs/alternatives.md

    /// check | "**FastAPI**ใธไธŽใˆใŸใ‚คใƒณใ‚นใƒ”ใƒฌใƒผใ‚ทใƒงใƒณ"
    
    ใƒžใ‚คใ‚ฏใƒญใƒ•ใƒฌใƒผใƒ ใƒฏใƒผใ‚ฏใงใ‚ใ‚‹ใ“ใจใ€‚ใƒ„ใƒผใƒซใ‚„ใƒ‘ใƒผใƒ„ใ‚’็›ฎ็š„ใซๅˆใ†ใ‚ˆใ†ใซ็ฐกๅ˜ใซ็ต„ใฟๅˆใ‚ใ›ใ‚‰ใ‚Œใ‚‹็‚นใ€‚
    
    ใ‚ทใƒณใƒ—ใƒซใง็ฐกๅ˜ใชใƒซใƒผใƒ†ใ‚ฃใƒณใ‚ฐใฎไป•็ต„ใฟใ‚’ๆŒใฃใฆใ„ใ‚‹็‚นใ€‚
    
    ///
    
    ### <a href="http://docs.python-requests.org" class="external-link" target="_blank">Requests</a>
    
    **FastAPI**ใฏๅฎŸ้š›ใซใฏ**Requests**ใฎไปฃๆ›ฟใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚ใใ‚Œใ‚‰ใฎใ‚นใ‚ณใƒผใƒ—ใฏๅคงใใ็•ฐใชใ‚Šใพใ™ใ€‚
    
    ๅฎŸ้š›ใซใฏFastAPIใ‚ขใƒ—ใƒชใ‚ฑใƒผใ‚ทใƒงใƒณใฎ*ๅ†…้ƒจ*ใงRequestsใ‚’ไฝฟ็”จใ™ใ‚‹ใฎใŒไธ€่ˆฌ็š„ใงใ™ใ€‚
    
    ใ—ใ‹ใ—ใ€FastAPIใฏRequestsใ‹ใ‚‰ใ‹ใชใ‚Šใฎใ‚คใƒณใ‚นใƒ”ใƒฌใƒผใ‚ทใƒงใƒณใ‚’ๅพ—ใฆใ„ใพใ™ใ€‚
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 31.6K bytes
    - Viewed (0)
  10. docs_src/app_testing/app_b_an_py310/main.py

    from typing import Annotated
    
    from fastapi import FastAPI, Header, HTTPException
    from pydantic import BaseModel
    
    fake_secret_token = "coneofsilence"
    
    fake_db = {
        "foo": {"id": "foo", "title": "Foo", "description": "There goes my hero"},
        "bar": {"id": "bar", "title": "Bar", "description": "The bartenders"},
    }
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        id: str
        title: str
        description: str | None = None
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 15 22:31:16 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top