Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 1,654 for FastAPI (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/en/docs/advanced/dataclasses.md

    # Using Dataclasses { #using-dataclasses }
    
    FastAPI is built on top of **Pydantic**, and I have been showing you how to use Pydantic models to declare requests and responses.
    
    But FastAPI also supports using [`dataclasses`](https://docs.python.org/3/library/dataclasses.html) the same way:
    
    {* ../../docs_src/dataclasses_/tutorial001_py310.py hl[1,6:11,18:19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  2. docs/en/docs/benchmarks.md

        * If you are comparing Starlette, compare it against Sanic, Flask, Django, etc. Web frameworks (or microframeworks).
    * **FastAPI**:
        * The same way that Starlette uses Uvicorn and cannot be faster than it, **FastAPI** uses Starlette, so it cannot be faster than it.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    # 從 Pydantic v1 遷移到 Pydantic v2 { #migrate-from-pydantic-v1-to-pydantic-v2 }
    
    如果你有一個舊的 FastAPI 應用,可能正在使用 Pydantic 1 版。
    
    FastAPI 0.100.0 同時支援 Pydantic v1 或 v2,會使用你已安裝的那個版本。
    
    FastAPI 0.119.0 透過 Pydantic v2 內的 `pydantic.v1` 提供對 Pydantic v1 的部分支援,以便遷移到 v2。
    
    FastAPI 0.126.0 移除了對 Pydantic v1 的支援,但在一段時間內仍支援 `pydantic.v1`。
    
    /// warning
    
    Pydantic 團隊自 **Python 3.14** 起,已停止在最新的 Python 版本中支援 Pydantic v1。
    
    這也包含 `pydantic.v1`,在 Python 3.14 及以上版本不再支援。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  4. docs/en/docs/history-design-future.md

    # History, Design and Future { #history-design-and-future }
    
    Some time ago, [a **FastAPI** user asked](https://github.com/fastapi/fastapi/issues/3#issuecomment-454956920):
    
    > What’s the history of this project? It seems to have come from nowhere to awesome in a few weeks [...]
    
    Here's a little bit of that history.
    
    ## Alternatives { #alternatives }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. docs/ko/docs/advanced/behind-a-proxy.md

                // 여기에 다른 내용이 더 있습니다
        }
    }
    ```
    
    이 예시에서 "Proxy"는 **Traefik** 같은 것이고, 서버는 **Uvicorn**으로 실행되는 FastAPI CLI처럼, FastAPI 애플리케이션을 실행하는 구성일 수 있습니다.
    
    ### `root_path` 제공하기 { #providing-the-root-path }
    
    이를 달성하려면 다음처럼 커맨드 라인 옵션 `--root-path`를 사용할 수 있습니다:
    
    <div class="termy">
    
    ```console
    $ fastapi run main.py --forwarded-allow-ips="*" --root-path /api/v1
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/server-sent-events.md

    ///
    
    ## Stream SSE with FastAPI { #stream-sse-with-fastapi }
    
    To stream SSE with FastAPI, use `yield` in your *path operation function* and set `response_class=EventSourceResponse`.
    
    Import `EventSourceResponse` from `fastapi.sse`:
    
    {* ../../docs_src/server_sent_events/tutorial001_py310.py ln[1:25] hl[4,22] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  7. docs/zh/docs/benchmarks.md

    * **FastAPI**:
        * 与 Starlette 使用 Uvicorn 一样,由于 **FastAPI** 使用 Starlette,因此 FastAPI 不能比 Starlette 更快。
        * FastAPI 在 Starlette 基础上提供了更多功能。例如在开发 API 时,所需的数据验证和序列化功能。FastAPI 可以帮助你自动生成 API文档,(文档在应用程序启动时自动生成,所以不会增加应用程序运行时的开销)。
        * 如果你不使用 FastAPI 而直接使用 Starlette(或诸如 Sanic,Flask,Responder 等其它工具),你则要自己实现所有的数据验证和序列化。那么最终你的应用程序会和使用 FastAPI 构建的程序有相同的开销。一般这种数据验证和序列化的操作在你应用程序的代码中会占很大比重。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  8. tests/test_response_model_invalid.py

    import pytest
    from fastapi import FastAPI
    from fastapi.exceptions import FastAPIError
    
    
    class NonPydanticModel:
        pass
    
    
    def test_invalid_response_model_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", response_model=NonPydanticModel)
            def read_root():
                pass  # pragma: nocover
    
    
    def test_invalid_response_model_sub_type_raises():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  9. docs/ja/docs/history-design-future.md

    # 歴史、設計、そしてこれから { #history-design-and-future }
    
    しばらく前に、[ある **FastAPI** ユーザーが質問しました](https://github.com/fastapi/fastapi/issues/3#issuecomment-454956920):
    
    > このプロジェクトの歴史は?何もないところから、数週間ですごいものができているようです。 [...]
    
    これがその歴史のほんの一部です。
    
    ## 代替手段 { #alternatives }
    
    数年前から、私は複雑な要件を持つAPI (機械学習、分散システム、非同期ジョブ、NoSQLデータベースなど) を作成しており、いくつかの開発者チームを率いています。
    
    その一環で、多くの方法を調査し、テストし、利用する必要がありました。
    
    **FastAPI** の歴史は、その前身の歴史が大部分を占めています。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  10. docs/en/docs/advanced/custom-response.md

    /// note
    
    If you use a response class with no media type, FastAPI will expect your response to have no content, so it will not document the response format in its generated OpenAPI docs.
    
    ///
    
    ## JSON Responses { #json-responses }
    
    By default FastAPI returns JSON responses.
    
    If you declare a [Response Model](../tutorial/response-model.md) FastAPI will use it to serialize the data to JSON, using Pydantic.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
Back to Top