Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 2,086 for FastAPI (0.07 seconds)

  1. docs_src/stream_data/tutorial002_py310.py

    import base64
    from collections.abc import AsyncIterable, Iterable
    from io import BytesIO
    
    from fastapi import FastAPI
    from fastapi.responses import StreamingResponse
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 20:51:40 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  2. docs_src/body_nested_models/tutorial009_py310.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.post("/index-weights/")
    async def create_index_weights(weights: dict[int, float]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 154 bytes
    - Click Count (0)
  3. docs/ja/docs/deployment/index.md

    複数のツールを組み合わせて自分で**サーバーをデプロイ**することもできますし、作業の一部を代行してくれる **クラウドサービス** を使うこともできます。ほかにも選択肢があります。
    
    たとえば、FastAPI の開発チームである私たちは、クラウドへの FastAPI アプリのデプロイを可能な限り合理化し、FastAPI を使って開発するのと同じ開発者体験を提供するために、[**FastAPI Cloud**](https://fastapicloud.com) を構築しました。
    
    **FastAPI** アプリケーションをデプロイする際に、おそらく念頭に置くべき主要な概念をいくつか紹介します(ただし、そのほとんどは他の種類の Web アプリケーションにも当てはまります)。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  4. docs_src/cookie_params/tutorial001_py310.py

    from fastapi import Cookie, FastAPI
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(ads_id: str | None = Cookie(default=None)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri May 13 23:38:22 GMT 2022
    - 170 bytes
    - Click Count (0)
  5. docs/zh-hant/docs/advanced/stream-data.md

    FastAPI 會如實將每個資料區塊交給 `StreamingResponse`,不會嘗試將其轉換為 JSON 或其他格式。
    
    ### 非 async 路徑操作函式 { #non-async-path-operation-functions }
    
    你也可以使用一般的 `def` 函式(沒有 `async`),並以相同方式使用 `yield`。
    
    {* ../../docs_src/stream_data/tutorial001_py310.py ln[26:29] hl[27] *}
    
    ### 不需要型別註解 { #no-annotation }
    
    對於串流二進位資料,其實不需要宣告回傳型別註解。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  6. docs_src/configure_swagger_ui/tutorial001_py310.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"syntaxHighlight": False})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 205 bytes
    - Click Count (0)
  7. docs_src/configure_swagger_ui/tutorial003_py310.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"deepLinking": False})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 201 bytes
    - Click Count (0)
  8. docs/en/docs/tutorial/background-tasks.md

    It is imported/included directly into FastAPI so that you can import it from `fastapi` and avoid accidentally importing the alternative `BackgroundTask` (without the `s` at the end) from `starlette.background`.
    
    By only using `BackgroundTasks` (and not `BackgroundTask`), it's then possible to use it as a *path operation function* parameter and have **FastAPI** handle the rest for you, just like when using the `Request` object directly.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  9. docs/ja/docs/deployment/docker.md

    ---> 100%
    Successfully installed fastapi pydantic
    ```
    
    </div>
    
    /// info | 情報
    
    パッケージの依存関係を定義しインストールするためのフォーマットやツールは他にもあります。
    
    ///
    
    ### **FastAPI**コードを作成する { #create-the-fastapi-code }
    
    * `app` ディレクトリを作成し、その中に入ります。
    * 空のファイル `__init__.py` を作成します。
    * 次の内容で `main.py` ファイルを作成します:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 36.8K bytes
    - Click Count (0)
  10. docs_src/custom_response/tutorial004_py310.py

    from fastapi import FastAPI
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    def generate_html_response():
        html_content = """
        <html>
            <head>
                <title>Some HTML in here</title>
            </head>
            <body>
                <h1>Look ma! HTML!</h1>
            </body>
        </html>
        """
        return HTMLResponse(content=html_content, status_code=200)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 491 bytes
    - Click Count (0)
Back to Top