Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 785 for py (0.01 sec)

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

    # First Steps { #first-steps }
    
    The simplest FastAPI file could look like this:
    
    {* ../../docs_src/first_steps/tutorial001.py *}
    
    Copy that to a file `main.py`.
    
    Run the live server:
    
    <div class="termy">
    
    ```console
    $ <font color="#4E9A06">fastapi</font> dev <u style="text-decoration-style:solid">main.py</u>
    
      <span style="background-color:#009485"><font color="#D3D7CF"> FastAPI </font></span>  Starting development server 🚀
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    
    Aber das ist immer noch nicht so nützlich.
    
    Lassen wir es uns den aktuellen Benutzer überreichen.
    
    ## Ein Benutzermodell erstellen
    
    Erstellen wir zunächst ein Pydantic-Benutzermodell.
    
    So wie wir Pydantic zum Deklarieren von Bodys verwenden, können wir es auch überall sonst verwenden:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:16] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    
    But that is still not that useful.
    
    Let's make it give us the current user.
    
    ## Create a user model { #create-a-user-model }
    
    First, let's create a Pydantic user model.
    
    The same way we use Pydantic to declare bodies, we can use it anywhere else:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/security/get-current-user.md

    L4:
    L5:{* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    L6:
    L7:Mas isso ainda não é tão útil.
    L8:
    L9:Vamos fazer com que ele nos forneça o usuário atual.
    L10:
    L11:## Criar um modelo de usuário
    L12:
    L13:Primeiro, vamos criar um modelo de usuário com Pydantic.
    L14:
    L15:Da mesma forma que usamos o Pydantic para declarar corpos, podemos usá-lo em qualquer outro lugar:
    L16:
    L17:{* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *}
    L18:
    L19:## Criar uma dependência `get_current_user`
    ...
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Jan 10 13:33:35 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/handling-errors.md

    **"404 Not Found"** のエラー(およびジョーク)を覚えていますか?
    
    ## `HTTPException`の使用
    
    HTTPレスポンスをエラーでクライアントに返すには、`HTTPException`を使用します。
    
    ### `HTTPException`のインポート
    
    {* ../../docs_src/handling_errors/tutorial001.py hl[1] *}
    
    ### コード内での`HTTPException`の発生
    
    `HTTPException`は通常のPythonの例外であり、APIに関連するデータを追加したものです。
    
    Pythonの例外なので、`return`ではなく、`raise`です。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Jun 22 14:35:27 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request-form-models.md

    Você precisa apenas declarar um **modelo Pydantic** com os campos que deseja receber como **campos de formulários**, e então declarar o parâmetro como um `Form`:
    
    {* ../../docs_src/request_form_models/tutorial001_an_py39.py hl[9:11,15] *}
    
    O **FastAPI** irá **extrair** as informações para **cada campo** dos **dados do formulário** na requisição e dar para você o modelo Pydantic que você definiu.
    
    ## Confira os Documentos
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. docs/ru/docs/advanced/response-cookies.md

    ## Использование параметра `Response`
    
    Вы можете объявить параметр типа `Response` в вашей функции эндпоинта.
    
    Затем установить cookies в этом временном объекте ответа.
    
    {* ../../docs_src/response_cookies/tutorial002.py hl[1, 8:9] *}
    
    После этого можно вернуть любой объект, как и раньше (например, `dict`, объект модели базы данных и так далее).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 11:15:23 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/extra-data-types.md

    ## 🖼
    
    📥 🖼 *➡ 🛠️* ⏮️ 🔢 ⚙️ 🔛 🆎.
    
    {* ../../docs_src/extra_data_types/tutorial001.py hl[1,3,12:16] *}
    
    🗒 👈 🔢 🔘 🔢 ✔️ 👫 🐠 💽 🆎, &amp; 👆 💪, 🖼, 🎭 😐 📅 🎭, 💖:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/schema-extra-example.md

    생성된 JSON 스키마에 추가될 Pydantic 모델을 위한 `examples`을 선언할 수 있습니다.
    
    //// tab | Pydantic v2
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *}
    
    ////
    
    추가 정보는 있는 그대로 해당 모델의 **JSON 스키마** 결과에 추가되고, API 문서에서 사용합니다.
    
    //// tab | Pydantic v2
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. docs/fr/docs/advanced/additional-responses.md

    Par exemple, pour déclarer une autre réponse avec un code HTTP `404` et un modèle Pydantic `Message`, vous pouvez écrire :
    
    {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *}
    
    /// note | Remarque
    
    Gardez à l'esprit que vous devez renvoyer directement `JSONResponse`.
    
    ///
    
    /// info
    
    La clé `model` ne fait pas partie d'OpenAPI.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top