Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 924 for docs_src (0.03 sec)

  1. docs/ko/docs/tutorial/first-steps.md

    ### 1 단계: `FastAPI` 임포트
    
    {* ../../docs_src/first_steps/tutorial001.py hl[1] *}
    
    `FastAPI`는 당신의 API를 위한 모든 기능을 제공하는 파이썬 클래스입니다.
    
    /// note | 기술 세부사항
    
    `FastAPI`는 `Starlette`를 직접 상속하는 클래스입니다.
    
    `FastAPI`로 <a href="https://www.starlette.dev/" class="external-link" target="_blank">Starlette</a>의 모든 기능을 사용할 수 있습니다.
    
    ///
    
    ### 2 단계: `FastAPI` "인스턴스" 생성
    
    {* ../../docs_src/first_steps/tutorial001.py hl[3] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.3K 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/background-tasks.md

    І оскільки операція запису не використовує `async` та `await`, ми визначаємо функцію як звичайну `def`:
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[6:9] *}
    
    ## Додавання фонової задачі
    
    Усередині Вашої *функції обробки шляху*, передайте функцію задачі в об'єкт *background tasks*, використовуючи метод `.add_task()`:
    
    {* ../../docs_src/background_tasks/tutorial001.py hl[14] *}
    
    `.add_task()` приймає аргументи:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/async-tests.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    O arquivo `main.py` teria:
    
    {* ../../docs_src/async_tests/app_a_py39/main.py *}
    
    O arquivo `test_main.py` teria os testes para para o arquivo `main.py`, ele poderia ficar assim:
    
    {* ../../docs_src/async_tests/app_a_py39/test_main.py *}
    
    ## Executá-lo { #run-it }
    
    Você pode executar os seus testes normalmente via:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. docs/fr/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial003.py hl[7] *}
    
    /// note
    
    Si vous ne connaissez pas la différence, allez voir la section [Concurrence : *"Vous êtes pressés ?"*](../async.md#vous-etes-presses){.internal-link target=_blank}.
    
    ///
    
    ### Étape 5 : retourner le contenu
    
    {* ../../docs_src/first_steps/tutorial001.py hl[8] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/handling-errors.md

    ## Use o `HTTPException` { #use-httpexception }
    
    Para retornar ao cliente *responses* HTTP com erros, use o `HTTPException`.
    
    ### Import `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *}
    
    ### Lance o `HTTPException` no seu código { #raise-an-httpexception-in-your-code }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/handling-errors.md

    ## Usa `HTTPException` { #use-httpexception }
    
    Para devolver responses HTTP con errores al cliente, usa `HTTPException`.
    
    ### Importa `HTTPException` { #import-httpexception }
    
    {* ../../docs_src/handling_errors/tutorial001_py39.py hl[1] *}
    
    ### Lanza un `HTTPException` en tu código { #raise-an-httpexception-in-your-code }
    
    `HTTPException` es una excepción de Python normal con datos adicionales relevantes para APIs.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. docs/tr/docs/python-types.md

    Bu fonksiyon, zaten tür belirteçlerine sahip:
    
    {* ../../docs_src/python_types/tutorial003.py hl[1] *}
    
    
    Editör değişkenlerin tiplerini bildiğinden, yalnızca otomatik tamamlama değil, hata kontrolleri de sağlar:
    
    <img src="/img/python-types/image04.png">
    
    Artık `age` değişkenini `str(age)` olarak kullanmanız gerektiğini biliyorsunuz:
    
    {* ../../docs_src/python_types/tutorial004.py hl[2] *}
    
    
    ## Tip bildirme
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/response-model.md

    ///
    
    ## 出力モデルの追加
    
    代わりに、平文のパスワードを持つ入力モデルと、パスワードを持たない出力モデルを作成することができます:
    
    {* ../../docs_src/response_model/tutorial003.py hl[9,11,16] *}
    
    ここでは、*path operation関数*がパスワードを含む同じ入力ユーザーを返しているにもかかわらず:
    
    {* ../../docs_src/response_model/tutorial003.py hl[24] *}
    
    ...`response_model`を`UserOut`と宣言したことで、パスワードが含まれていません:
    
    {* ../../docs_src/response_model/tutorial003.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/events.md

    Let's start with an example and then see it in detail.
    
    We create an async function `lifespan()` with `yield` like this:
    
    {* ../../docs_src/events/tutorial003_py39.py hl[16,19] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top