Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 208 for url_lines (0.08 sec)

  1. docs/ru/docs/tutorial/testing.md

    ### Файл тестов
    
    Также у Вас может быть файл `test_main.py` содержащий тесты. Можно разместить тестовый файл и файл приложения в одной директории (в директориях для Python-кода желательно размещать и файл `__init__.py`):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. docs/uk/docs/tutorial/testing.md

    {* ../../docs_src/app_testing/main.py *}
    
    ### Файл тестування
    
    Ви можете створити файл `test_main.py` з Вашими тестами. Він може знаходитися в тому ж пакеті Python (у тій самій директорії з файлом `__init__.py`):
    
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 28 14:12:19 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  3. docs/em/docs/index.md

        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    <summary>⚖️ ⚙️ <code>async def</code>...</summary>
    
    🚥 👆 📟 ⚙️ `async` / `await`, ⚙️ `async def`:
    
    ```Python hl_lines="9  14"
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. docs/he/docs/index.md

        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    <summary>או השתמשו ב - <code>async def</code>...</summary>
    
    אם הקוד שלכם משתמש ב - `async` / `await`, השתמשו ב - `async def`:
    
    ```Python hl_lines="9  14"
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/testing.md

    ### Testing file { #testing-file }
    
    Then you could have a file `test_main.py` with your tests. It could live on the same Python package (the same directory with a `__init__.py` file):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Because this file is in the same package, you can use relative imports to import the object `app` from the `main` module (`main.py`):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Це означає, що **FastAPI** буде очікувати (конвертувати, валідувати, документувати тощо) JSON тіло запиту у вигляді:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
        "description": "The pretender",
        "price": 42.0,
        "tax": 3.2,
        "tags": [
            "rock",
            "metal",
            "bar"
        ],
        "images": [
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/path-params-numeric-validations.md

    Поэтому вы можете определить функцию так:
    
    //// tab | Python 3.8 без Annotated
    
    /// tip | Подсказка
    
    Рекомендуется использовать версию с `Annotated` если возможно.
    
    ///
    
    ```Python hl_lines="7"
    {!> ../../docs_src/path_params_numeric_validations/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/path-params-numeric-validations.md

    Sie können Ihre Funktion also so deklarieren:
    
    //// tab | Python 3.8 nicht annotiert
    
    /// tip | Tipp
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python hl_lines="7"
    {!> ../../docs_src/path_params_numeric_validations/tutorial002.py!}
    ```
    
    ////
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/testing.md

    ### Archivo de prueba
    
    Entonces podrías tener un archivo `test_main.py` con tus pruebas. Podría estar en el mismo paquete de Python (el mismo directorio con un archivo `__init__.py`):
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/handling-errors.md

    ```JSON
    {
      "title": "towel",
      "size": "XL"
    }
    ```
    
    Sie erhalten eine Response, die Ihnen sagt, dass die Daten ungültig sind, und welche den empfangenen Body enthält.
    
    ```JSON hl_lines="12-15"
    {
      "detail": [
        {
          "loc": [
            "body",
            "size"
          ],
          "msg": "value is not a valid integer",
          "type": "type_error.integer"
        }
      ],
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top