Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1681 - 1690 of 1,992 for Fastapi (1.23 sec)

  1. docs/zh-hant/docs/virtual-environments.md

    其中一些目錄專門用來存放你所安裝的所有套件。
    
    當你運行:
    
    <div class="termy">
    
    ```console
    // 先別去運行這個指令,這只是個示例 🤓
    $ pip install "fastapi[standard]"
    ---> 100%
    ```
    
    </div>
    
    這會從 <a href="https://pypi.org/project/fastapi/" class="external-link" target="_blank">PyPI</a> 下載一個壓縮檔案,其中包含 FastAPI 的程式碼。
    
    它還會**下載** FastAPI 所依賴的其他套件的檔案。
    
    接著,它會**解壓**所有這些檔案,並將它們放在你的電腦中的某個目錄中。
    
    預設情況下,這些下載和解壓的檔案會放置於隨 Python 安裝的目錄中,即**全域環境**。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 22:39:33 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. docs/zh/docs/virtual-environments.md

    其中一些目录负责存放你安装的所有软件包。
    
    当你运行:
    
    <div class="termy">
    
    ```console
    // 先别去运行这个命令,这只是一个示例 🤓
    $ pip install "fastapi[standard]"
    ---> 100%
    ```
    
    </div>
    
    这将会从 <a href="https://pypi.org/project/fastapi/" class="external-link" target="_blank">PyPI</a> 下载一个压缩文件,其中包含 FastAPI 代码。
    
    它还会**下载** FastAPI 依赖的其他软件包的文件。
    
    然后它会**解压**所有这些文件,并将它们放在你的计算机上的一个目录中。
    
    默认情况下,它会将下载并解压的这些文件放在随 Python 安装的目录中,这就是**全局环境**。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Nov 08 19:23:26 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial009c.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial009c_py39 import app
    
    client = TestClient(app)
    
    
    def test_get():
        response = client.get("/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 244 bytes
    - Viewed (0)
  4. docs_src/bigger_applications/app_py39/routers/items.py

    from fastapi import APIRouter, Depends, HTTPException
    
    from ..dependencies import get_token_header
    
    router = APIRouter(
        prefix="/items",
        tags=["items"],
        dependencies=[Depends(get_token_header)],
        responses={404: {"description": "Not found"}},
    )
    
    
    fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}}
    
    
    @router.get("/")
    async def read_items():
        return fake_items_db
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 1011 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_templates/test_tutorial001.py

    import os
    import shutil
    
    from fastapi.testclient import TestClient
    
    
    def test_main():
        if os.path.isdir("./static"):  # pragma: nocover
            shutil.rmtree("./static")
        if os.path.isdir("./templates"):  # pragma: nocover
            shutil.rmtree("./templates")
        shutil.copytree("./docs_src/templates/templates/", "./templates")
        shutil.copytree("./docs_src/templates/static/", "./static")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 915 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_custom_response/test_tutorial007.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial007_py39 import app
    
    client = TestClient(app)
    
    
    def test_get():
        fake_content = b"some fake video bytes"
        response = client.get("/")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 269 bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/metadata.md

    # Metadados e Urls de Documentos { #metadata-and-docs-urls }
    
    Você pode personalizar várias configurações de metadados na sua aplicação **FastAPI**.
    
    ## Metadados para API { #metadata-for-api }
    
    Você pode definir os seguintes campos que são usados na especificação OpenAPI e nas interfaces automáticas de documentação da API:
    
    | Parâmetro | Tipo | Descrição |
    |------------|------|-------------|
    | `title` | `str` | O título da API. |
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. tests/test_request_params/test_form/test_list.py

    from typing import Annotated
    
    import pytest
    from dirty_equals import IsOneOf, IsPartialDict
    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    from pydantic import BaseModel, Field
    
    from .utils import get_body_model_name
    
    app = FastAPI()
    
    # =====================================================================================
    # Without aliases
    
    
    @app.post("/required-list-str", operation_id="required_list_str")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:31:34 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. docs/ja/docs/async.md

    しかし同時に、`async def` で定義された関数は「awaitされる」必要があります。なので、`async def` を持つ関数は、`async def` で定義された関数内でのみ呼び出せます。
    
    では、このニワトリと卵の問題について、最初の `async` 関数をどのように呼び出すのでしょうか?
    
    **FastAPI**を使用している場合、その「最初の」関数が*path operation 関数*であり、FastAPIが正しく実行する方法を知っているので、心配する必要はありません。
    
    しかし、FastAPI以外で `async` / `await` を使用したい場合は、<a href="https://docs.python.org/3/library/asyncio-task.html#coroutine" class="external-link" target="_blank">公式Pythonドキュメントを参照して下さい</a>。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:56:21 UTC 2025
    - 27.7K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_dependencies/test_tutorial008e.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial008e_py39"),
            pytest.param("tutorial008e_an_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.dependencies.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 574 bytes
    - Viewed (0)
Back to top