Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 794 for py (0.6 sec)

  1. docs/es/docs/tutorial/security/get-current-user.md

    {* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    
    Pero eso aún no es tan útil. Vamos a hacer que nos dé el usuario actual.
    
    ## Crear un modelo de usuario
    
    Primero, vamos a crear un modelo de usuario con Pydantic.
    
    De la misma manera que usamos Pydantic para declarar cuerpos, podemos usarlo en cualquier otra parte:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[5,12:6] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/de/docs/how-to/custom-request-and-route.md

    {* ../../docs_src/custom_request_and_route/tutorial002.py hl[13,15] *}
    
    Wenn eine Exception auftritt, befindet sich die `Request`-Instanz weiterhin im Gültigkeitsbereich, sodass wir den Requestbody lesen und bei der Fehlerbehandlung verwenden können:
    
    {* ../../docs_src/custom_request_and_route/tutorial002.py hl[16:18] *}
    
    ## Benutzerdefinierte `APIRoute`-Klasse in einem Router
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial003.py hl[6,11] *}
    
    Otherwise, the path for `/users/{user_id}` would match also for `/users/me`, "thinking" that it's receiving a parameter `user_id` with a value of `"me"`.
    
    Similarly, you cannot redefine a path operation:
    
    {* ../../docs_src/path_params/tutorial003b.py hl[6,11] *}
    
    The first one will always be used since the path matches first.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial003.py hl[6,11] *}
    
    De lo contrario, el path para `/users/{user_id}` también coincidiría para `/users/me`, "pensando" que está recibiendo un parámetro `user_id` con un valor de `"me"`.
    
    De manera similar, no puedes redefinir una path operation:
    
    {* ../../docs_src/path_params/tutorial003b.py hl[6,11] *}
    
    La primera siempre será utilizada ya que el path coincide primero.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/body-nested-models.md

    ### Defina um sub-modelo
    
    Por exemplo, nós podemos definir um modelo `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004.py hl[9:11] *}
    
    ### Use o sub-modelo como um tipo
    
    E então podemos usa-lo como o tipo de um atributo:
    
    {* ../../docs_src/body_nested_models/tutorial004.py hl[20] *}
    
    Isso significa que o **FastAPI** vai esperar um corpo similar à:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. docs/es/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="1  3"
    {!> ../../docs_src/query_params_str_validations/tutorial002_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    En versiones de Python por debajo de 3.9 importas `Annotated` desde `typing_extensions`.
    
    Ya estará instalado con FastAPI.
    
    ```Python hl_lines="3-4"
    {!> ../../docs_src/query_params_str_validations/tutorial002_an.py!}
    ```
    
    ////
    
    /// info | Información
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 16:23:59 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  7. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    Vous devez vous assurer qu'il est unique pour chaque opération.
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial001.py hl[6] *}
    
    ### Utilisation du nom *path operation function* comme operationId
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    
    ### `HTMLResponse` { #htmlresponse }
    
    Takes some text or bytes and returns an HTML response, as you read above.
    
    ### `PlainTextResponse` { #plaintextresponse }
    
    Takes some text or bytes and returns a plain text response.
    
    {* ../../docs_src/custom_response/tutorial005.py hl[2,7,9] *}
    
    ### `JSONResponse` { #jsonresponse }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/path-params-numeric-validations.md

    ///
    
    ```Python hl_lines="7"
    {!> ../../docs_src/path_params_numeric_validations/tutorial002.py!}
    ```
    
    ////
    
    Aber bedenken Sie, dass Sie dieses Problem nicht haben, wenn Sie `Annotated` verwenden, da Sie nicht die Funktions-Parameter-Defaultwerte für `Query()` oder `Path()` verwenden.
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py39.py hl[10] *}
    
    ## Sortieren Sie die Parameter wie Sie möchten: Tricks
    
    /// tip | Tipp
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/testing.md

    ### **FastAPI** アプリファイル
    
    **FastAPI** アプリに `main.py` ファイルがあるとします:
    
    {* ../../docs_src/app_testing/main.py *}
    
    ### テストファイル
    
    次に、テストを含む `test_main.py` ファイルを作成し、`main` モジュール (`main.py`) から `app` をインポートします:
    
    {* ../../docs_src/app_testing/test_main.py *}
    
    ## テスト: 例の拡張
    
    次に、この例を拡張し、詳細を追加して、さまざまなパーツをテストする方法を確認しましょう。
    
    
    ### 拡張版 **FastAPI** アプリファイル
    
    **FastAPI** アプリに `main_b.py` ファイルがあるとします。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top