Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 751 - 760 of 1,542 for FastApi (0.05 seconds)

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

  1. tests/test_tutorial/test_extra_models/test_tutorial005.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial005_py39"),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.extra_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_items(client: TestClient):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/index.md

    **强烈建议**您在本地编写或复制代码,对其进行编辑并运行。
    
    在编辑器中使用 FastAPI 会真正地展现出它的优势:只需要编写很少的代码,所有的类型检查,代码补全等等。
    
    ---
    
    ## 安装 FastAPI
    
    第一个步骤是安装 FastAPI.
    
    请确保您创建并激活一个[虚拟环境](../virtual-environments.md){.internal-link target=_blank},然后**安装 FastAPI**:
    
    <div class="termy">
    
    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    /// note
    
    当您使用 `pip install "fastapi[standard]"` 进行安装时,它会附带一些默认的可选标准依赖项。
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Mar 31 08:15:11 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  3. docs/fr/docs/learn/index.md

    # Apprendre
    
    Voici les sections introductives et les tutoriels pour apprendre **FastAPI**.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Jun 20 19:09:17 GMT 2024
    - 231 bytes
    - Click Count (0)
  4. docs/en/docs/external-links.md

    # External Links
    
    **FastAPI** has a great community constantly growing.
    
    There are many posts, articles, tools, and projects, related to **FastAPI**.
    
    You could easily use a search engine or video platform to find many resources related to FastAPI.
    
    /// info
    
    Before, this page used to list links to external articles.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 10 12:28:40 GMT 2025
    - 917 bytes
    - Click Count (0)
  5. docs/de/docs/advanced/security/oauth2-scopes.md

    Durch die Verwendung von `Security` anstelle von `Depends` weiß **FastAPI** jedoch, dass es Sicherheits-Scopes deklarieren, intern verwenden und die API mit OpenAPI dokumentieren kann.
    
    Wenn Sie jedoch `Query`, `Path`, `Depends`, `Security` und andere von `fastapi` importieren, handelt es sich tatsächlich um Funktionen, die spezielle Klassen zurückgeben.
    
    ///
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/debugging.md

    ///
    
    ## 디버거로 코드 실행
    
    코드에서 직접 Uvicorn 서버를 실행하고 있기 때문에 디버거에서 직접 Python 프로그램(FastAPI 애플리케이션)을 호출할 수 있습니다.
    
    ---
    
    예를 들어 Visual Studio Code에서 다음을 수행할 수 있습니다.
    
    * "Debug" 패널로 이동합니다.
    * "Add configuration...".
    * "Python"을 선택합니다.
    * "`Python: Current File (Integrated Terminal)`" 옵션으로 디버거를 실행합니다.
    
    그런 다음 **FastAPI** 코드로 서버를 시작하고 중단점 등에서 중지합니다.
    
    다음과 같이 표시됩니다.
    
    <img src="/img/tutorial/debugging/image01.png">
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 2.7K bytes
    - Click Count (0)
  7. docs/en/docs/reference/templating.md

    You can use the `Jinja2Templates` class to render Jinja templates.
    
    Read more about it in the [FastAPI docs for Templates](https://fastapi.tiangolo.com/advanced/templates/).
    
    You can import it directly from `fastapi.templating`:
    
    ```python
    from fastapi.templating import Jinja2Templates
    ```
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 365 bytes
    - Click Count (0)
  8. docs/ko/docs/benchmarks.md

    계층 구조는 다음과 같습니다:
    
    * **Uvicorn**: ASGI 서버
        * **Starlette**: (Uvicorn 사용) 웹 마이크로 프레임워크
            * **FastAPI**: (Starlette 사용) API 구축을 위한 데이터 검증 등 여러 추가 기능이 포함된 API 마이크로 프레임워크
    
    * **Uvicorn**:
        * 서버 자체 외에는 많은 추가 코드가 없기 때문에 최고의 성능을 발휘합니다.
        * 직접 Uvicorn으로 응용 프로그램을 작성하지는 않을 것입니다. 즉, 사용자의 코드에는 적어도 Starlette(또는 **FastAPI**)에서 제공하는 모든 코드가 포함되어야 합니다. 그렇게 하면 최종 응용 프로그램은 프레임워크를 사용하고 앱 코드와 버그를 최소화하는 것과 동일한 오버헤드를 갖게 됩니다.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Oct 27 15:01:38 GMT 2024
    - 4K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/sub-applications.md

    # Sub Applications - Mounts { #sub-applications-mounts }
    
    If you need to have two independent FastAPI applications, with their own independent OpenAPI and their own docs UIs, you can have a main app and "mount" one (or more) sub-application(s).
    
    ## Mounting a **FastAPI** application { #mounting-a-fastapi-application }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 3K bytes
    - Click Count (0)
  10. tests/test_security_api_key_header.py

    from fastapi import Depends, FastAPI, Security
    from fastapi.security import APIKeyHeader
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    api_key = APIKeyHeader(name="key")
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(api_key)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top