Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 890 for docs_src (0.32 sec)

  1. tests/test_tutorial/test_dependencies/test_tutorial008d_an_py39.py

    @needs_py39
    def test_internal_error(client: TestClient):
        from docs_src.dependencies.tutorial008d_an_py39 import InternalError
    
        with pytest.raises(InternalError) as exc_info:
            client.get("/items/portal-gun")
        assert (
            exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick"
        )
    
    
    @needs_py39
    def test_internal_server_error():
        from docs_src.dependencies.tutorial008d_an_py39 import app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/request-forms.md

    ///
    
    ## Импорт `Form`
    
    Импортируйте `Form` из `fastapi`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="3"
    {!> ../../docs_src/request_forms/tutorial001_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/request_forms/tutorial001_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ без Annotated
    
    /// tip | "Подсказка"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/request-forms.md

    ///
    
    ## `Form` importieren
    
    Importieren Sie `Form` von `fastapi`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="3"
    {!> ../../docs_src/request_forms/tutorial001_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1"
    {!> ../../docs_src/request_forms/tutorial001_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/dependencies/sub-dependencies.md

    **FastAPI** 🔜 ✊ 💅 🔬 👫.
    
    ## 🥇 🔗 "☑"
    
    👆 💪 ✍ 🥇 🔗 ("☑") 💖:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/dependencies/tutorial005.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="6-7"
    {!> ../../docs_src/dependencies/tutorial005_py310.py!}
    ```
    
    ////
    
    ⚫️ 📣 📦 🔢 🔢 `q` `str`, & ⤴️ ⚫️ 📨 ⚫️.
    
    👉 🙅 (🚫 📶 ⚠), ✋️ 🔜 ℹ 👥 🎯 🔛 ❔ 🎧-🔗 👷.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/security/http-basic-auth.md

    ```Python hl_lines="4  8  12"
    {!> ../../docs_src/security/tutorial006_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="2  7  11"
    {!> ../../docs_src/security/tutorial006_an.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ non-Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="2  6  10"
    {!> ../../docs_src/security/tutorial006.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/request-files.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="9  17"
    {!> ../../docs_src/request_files/tutorial001_02_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="9  17"
    {!> ../../docs_src/request_files/tutorial001_02_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="10  18"
    {!> ../../docs_src/request_files/tutorial001_02_an.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/request_files.md

    ```Python hl_lines="1"
    {!> ../../docs_src/request_files/tutorial001.py!}
    ```
    
    ////
    
    ## Defina os parâmetros de `File`
    
    Cria os parâmetros do arquivo da mesma forma que você faria para `Body` ou `Form`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/request_files/tutorial001_an_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="8"
    {!> ../../docs_src/request_files/tutorial001_an.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/extra-models.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
    {!> ../../docs_src/extra_models/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
    {!> ../../docs_src/extra_models/tutorial001.py!}
    ```
    
    ////
    
    ### Про `**user_in.dict()`
    
    #### `.dict()` из Pydantic
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/extra-models.md

    //// tab | Python 3.8 and above
    
    ```Python hl_lines="9  11  16  22  24  29-30  33-35  40-41"
    {!> ../../docs_src/extra_models/tutorial001.py!}
    ```
    
    ////
    
    //// tab | Python 3.10 and above
    
    ```Python hl_lines="7  9  14  20  22  27-28  31-33  38-39"
    {!> ../../docs_src/extra_models/tutorial001_py310.py!}
    ```
    
    ////
    
    ### Sobre `**user_in.dict()`
    
    #### O `.dict()` do Pydantic
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. docs/pt/docs/how-to/separate-openapi-schemas.md

    ```Python hl_lines="9"
    {!> ../../docs_src/separate_openapi_schemas/tutorial001_py39.py[ln:1-9]!}
    
    # Code below omitted 👇
    ```
    
    <details>
    <summary>👀 Visualização completa do arquivo</summary>
    
    ```Python
    {!> ../../docs_src/separate_openapi_schemas/tutorial001_py39.py!}
    ```
    
    </details>
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9"
    {!> ../../docs_src/separate_openapi_schemas/tutorial001.py[ln:1-9]!}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 24 18:52:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top