Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 652 for tutorial003_py39 (0.08 sec)

  1. docs/ru/docs/tutorial/extra-models.md

    Таким же образом вы можете определять ответы как списки объектов.
    
    Для этого используйте `typing.List` из стандартной библиотеки Python (или просто `list` в Python 3.9 и выше):
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## Ответ с произвольным `dict` { #response-with-arbitrary-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_custom_response/test_tutorial008.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial008_py39
    from docs_src.custom_response.tutorial008_py39 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008_py39.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 502 bytes
    - Viewed (0)
  3. docs/uk/docs/tutorial/body-nested-models.md

    ```Python
    images: List[Image]
    ```
    або в Python 3.9 і вище:
    
    ```Python
    images: list[Image]
    ```
    
    наприклад:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Підтримка в редакторі всюди
    
    Ви отримаєте підтримку в редакторі всюди.
    
    Навіть для елементів у списках:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/extra-models.md

    Da mesma forma, você pode declarar respostas de listas de objetos.
    
    Para isso, use o padrão Python `typing.List` (ou simplesmente `list` no Python 3.9 e superior):
    
    {* ../../docs_src/extra_models/tutorial004_py39.py hl[18] *}
    
    ## Resposta com `dict` arbitrário { #response-with-arbitrary-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  5. docs/pt/docs/how-to/extending-openapi.md

    Primeiro, escreva toda a sua aplicação **FastAPI** normalmente:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Gerar o esquema OpenAPI { #generate-the-openapi-schema }
    
    Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Modificar o esquema OpenAPI { #modify-the-openapi-schema }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  6. docs/ru/docs/how-to/extending-openapi.md

    Сначала напишите приложение **FastAPI** как обычно:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Сгенерируйте схему OpenAPI { #generate-the-openapi-schema }
    
    Затем используйте ту же вспомогательную функцию для генерации схемы OpenAPI внутри функции `custom_openapi()`:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Измените схему OpenAPI { #modify-the-openapi-schema }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_custom_response/test_tutorial009.py

    from pathlib import Path
    
    from fastapi.testclient import TestClient
    
    from docs_src.custom_response import tutorial009_py39
    from docs_src.custom_response.tutorial009_py39 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009_py39.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 502 bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/body-nested-models.md

    ```Python
    images: list[Image]
    ```
    
    as in:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Editor support everywhere { #editor-support-everywhere }
    
    And you get editor support everywhere.
    
    Even for items inside of lists:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/body-nested-models.md

    ```Python
    images: list[Image]
    ```
    
    например так:
    
    {* ../../docs_src/body_nested_models/tutorial008_py39.py hl[13] *}
    
    ## Поддержка редактора кода везде { #editor-support-everywhere }
    
    И вы получаете поддержку редактора кода везде.
    
    Даже для элементов внутри списков:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/extending-openapi.md

    First, write all your **FastAPI** application as normally:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[1,4,7:9] *}
    
    ### Generate the OpenAPI schema { #generate-the-openapi-schema }
    
    Then, use the same utility function to generate the OpenAPI schema, inside a `custom_openapi()` function:
    
    {* ../../docs_src/extending_openapi/tutorial001_py39.py hl[2,15:21] *}
    
    ### Modify the OpenAPI schema { #modify-the-openapi-schema }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top