Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 2,086 for FastAPI (0.04 seconds)

  1. docs/ja/docs/advanced/middleware.md

    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    しかし FastAPI(正確には Starlette)は、内部ミドルウェアがサーバーエラーを処理し、カスタム例外ハンドラが正しく動作することを保証する、より簡単な方法を提供しています。
    
    そのためには(CORS の例と同様に)`app.add_middleware()` を使います。
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    app = FastAPI()
    
    app.add_middleware(UnicornMiddleware, some_config="rainbow")
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. docs_src/response_model/tutorial006_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float = 10.5
    
    
    items = {
        "foo": {"name": "Foo", "price": 50.2},
        "bar": {"name": "Bar", "description": "The Bar fighters", "price": 62, "tax": 20.2},
        "baz": {
            "name": "Baz",
            "description": "There goes my baz",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 816 bytes
    - Click Count (0)
  3. docs_src/path_operation_configuration/tutorial005_py310.py

    from fastapi import FastAPI
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
    
    
    @app.post(
        "/items/",
        summary="Create an item",
        response_description="The created item",
    )
    async def create_item(item: Item) -> Item:
        """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:07:26 GMT 2026
    - 681 bytes
    - Click Count (0)
  4. docs/zh-hant/docs/deployment/cloud.md

    # 在雲端供應商上部署 FastAPI { #deploy-fastapi-on-cloud-providers }
    
    你幾乎可以使用**任何雲端供應商**來部署你的 FastAPI 應用程式。
    
    在大多數情況下,主要的雲端供應商都有部署 FastAPI 的指南。
    
    ## FastAPI Cloud { #fastapi-cloud }
    
    **[FastAPI Cloud](https://fastapicloud.com)** 由 **FastAPI** 的同一位作者與團隊打造。
    
    它讓你以最少的投入,簡化 **建置**、**部署** 與 **存取** API 的流程。
    
    它把使用 FastAPI 開發應用的同樣**優秀的開發者體驗**,帶到將它們**部署**到雲端的過程中。🎉
    
    FastAPI Cloud 是 *FastAPI and friends* 開源專案的主要贊助與資金提供者。✨
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  5. docs/zh/docs/deployment/cloud.md

    # 在云服务商上部署 FastAPI { #deploy-fastapi-on-cloud-providers }
    
    你几乎可以使用**任何云服务商**来部署你的 FastAPI 应用。
    
    在大多数情况下,主流云服务商都有部署 FastAPI 的指南。
    
    ## FastAPI Cloud { #fastapi-cloud }
    
    **[FastAPI Cloud](https://fastapicloud.com)** 由 **FastAPI** 背后的同一作者与团队打造。
    
    它简化了**构建**、**部署**和**访问** API 的流程,几乎不费力。
    
    它把使用 FastAPI 构建应用时相同的**开发者体验**带到了将应用**部署**到云上的过程。🎉
    
    FastAPI Cloud 是 *FastAPI and friends* 开源项目的主要赞助方和资金提供者。✨
    
    ## 云服务商 - 赞助商 { #cloud-providers-sponsors }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/index.md

    </a>
    <a href="https://pypi.org/project/fastapi">
        <img src="https://img.shields.io/pypi/pyversions/fastapi.svg?color=%2334D058" alt="Supported Python versions">
    </a>
    </p>
    
    ---
    
    **文件**: [https://fastapi.tiangolo.com/zh-hant](https://fastapi.tiangolo.com/zh-hant)
    
    **程式碼**: [https://github.com/fastapi/fastapi](https://github.com/fastapi/fastapi)
    
    ---
    
    FastAPI 是一個現代、快速(高效能)的 Web 框架,用於以 Python 並基於標準的 Python 型別提示來構建 API。
    
    主要特點包含:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  7. docs/en/docs/features.md

    **FastAPI** is fully compatible with (and based on) [**Starlette**](https://www.starlette.dev/). So, any additional Starlette code you have, will also work.
    
    `FastAPI` is actually a sub-class of `Starlette`. So, if you already know or use Starlette, most of the functionality will work the same way.
    
    With **FastAPI** you get all of **Starlette**'s features (as FastAPI is just Starlette on steroids):
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  8. docs/zh/docs/deployment/fastapicloud.md

    # FastAPI Cloud { #fastapi-cloud }
    
    你可以用**一条命令**将你的 FastAPI 应用部署到 [FastAPI Cloud](https://fastapicloud.com),如果还没有,去加入候补名单吧。🚀
    
    ## 登录 { #login }
    
    请确保你已有 **FastAPI Cloud** 账号(我们已从候补名单向你发出邀请 😉)。
    
    然后登录:
    
    <div class="termy">
    
    ```console
    $ fastapi login
    
    You are logged in to FastAPI Cloud 🚀
    ```
    
    </div>
    
    ## 部署 { #deploy }
    
    现在用**一条命令**部署你的应用:
    
    <div class="termy">
    
    ```console
    $ fastapi deploy
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  9. tests/test_annotated.py

    from typing import Annotated
    
    import pytest
    from fastapi import APIRouter, FastAPI, Query
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    app = FastAPI()
    
    
    @app.get("/default")
    async def default(foo: Annotated[str, Query()] = "foo"):
        return {"foo": foo}
    
    
    @app.get("/required")
    async def required(foo: Annotated[str, Query(min_length=1)]):
        return {"foo": foo}
    
    
    @app.get("/multiple")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  10. docs/tr/docs/tutorial/first-steps.md

    Uygulamanızı tek komutla **[FastAPI Cloud](https://fastapicloud.com)**'a deploy edin: `fastapi deploy`. 🎉
    
    #### FastAPI Cloud Hakkında { #about-fastapi-cloud }
    
    **[FastAPI Cloud](https://fastapicloud.com)**, **FastAPI**'ın arkasındaki aynı yazar ve ekip tarafından geliştirilmiştir.
    
    Minimum eforla bir API'ı **oluşturma**, **deploy etme** ve **erişme** sürecini sadeleştirir.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 14.4K bytes
    - Click Count (0)
Back to Top