Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 296 for tutorial001_py310 (0.18 sec)

  1. docs/zh/docs/tutorial/background-tasks.md

    ```
    
    ////
    
    //// tab | Python 3.10+ 没Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="11  13  20  23"
    {!> ../../docs_src/background_tasks/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ 没Annotated
    
    /// tip
    
    尽可能选择使用 `Annotated` 的版本。
    
    ///
    
    ```Python hl_lines="13  15  22  25"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial010_py310.py

    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.query_params_str_validations.tutorial010_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_query_params_str_validations_no_query(client: TestClient):
        response = client.get("/items/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/websockets.md

    ```
    
    ////
    
    //// tab | Python 3.10+ 非带注解版本
    
    /// tip
    
    如果可能,请尽量使用 `Annotated` 版本。
    
    ///
    
    ```Python hl_lines="66-67  79"
    {!> ../../docs_src/websockets/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ 非带注解版本
    
    /// tip
    
    如果可能,请尽量使用 `Annotated` 版本。
    
    ///
    
    ```Python hl_lines="68-69  81"
    {!> ../../docs_src/websockets/tutorial002.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_websockets/test_tutorial002_py310.py

    from fastapi.testclient import TestClient
    from fastapi.websockets import WebSocketDisconnect
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.websockets.tutorial002_py310 import app
    
        return app
    
    
    @needs_py310
    def test_main(app: FastAPI):
        client = TestClient(app)
        response = client.get("/")
        assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_path_operation_configurations/test_tutorial005_py310.py

    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310, needs_pydanticv1, needs_pydanticv2
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.path_operation_configuration.tutorial005_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_query_params_str_validations(client: TestClient):
        response = client.post("/items/", json={"name": "Foo", "price": 42})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/background-tasks.md

    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛
    
    ```Python hl_lines="11  13  20  23"
    {!> ../../docs_src/background_tasks/tutorial002_py310.py!}
    ```
    
    ////
    
    👉 🖼, 📧 🔜 ✍ `log.txt` 📁 *⏮️* 📨 📨.
    
    🚥 📤 🔢 📨, ⚫️ 🔜 ✍ 🕹 🖥 📋.
    
    & ⤴️ ➕1️⃣ 🖥 📋 🏗 *➡ 🛠️ 🔢* 🔜 ✍ 📧 ⚙️ `email` ➡ 🔢.
    
    ## 📡 ℹ
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial003_py310.py

    import pytest
    from dirty_equals import IsDict
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from docs_src.security.tutorial003_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_login(client: TestClient):
        response = client.post("/token", data={"username": "johndoe", "password": "secret"})
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/background-tasks.md

    //// tab | Python 3.10+
    
    ```Python hl_lines="11  13  20  23"
    {!> ../../docs_src/background_tasks/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="13  15  22  25"
    {!> ../../docs_src/background_tasks/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/background-tasks.md

    ////
    
    //// tab | Python 3.10+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="11  13  20  23"
    {!> ../../docs_src/background_tasks/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="13  15  22  25"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/websockets.md

    ////
    
    //// tab | Python 3.10+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="66-67  79"
    {!> ../../docs_src/websockets/tutorial002_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ nicht annotiert
    
    /// tip | "Tipp"
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="68-69  81"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top