Search Options

Results per page
Sort
Preferred Languages
Advance

Results 631 - 640 of 794 for py (0.02 sec)

  1. docs/es/docs/advanced/additional-status-codes.md

    Para lograr eso, importa `JSONResponse`, y devuelve tu contenido allí directamente, configurando el `status_code` que deseas:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning | Advertencia
    
    Cuando devuelves un `Response` directamente, como en el ejemplo anterior, se devuelve directamente.
    
    No se serializará con un modelo, etc.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/static-files.md

    ## Use `StaticFiles` { #use-staticfiles }
    
    * Import `StaticFiles`.
    * "Mount" a `StaticFiles()` instance in a specific path.
    
    {* ../../docs_src/static_files/tutorial001.py hl[2,6] *}
    
    /// note | Technical Details
    
    You could also use `from starlette.staticfiles import StaticFiles`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/response-change-status-code.md

    And then you can set the `status_code` in that *temporal* response object.
    
    {* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
    
    And then you can return any object you need, as you normally would (a `dict`, a database model, etc).
    
    And if you declared a `response_model`, it will still be used to filter and convert the object you returned.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/response-change-status-code.md

    E então você pode definir o `status_code` neste objeto de retorno temporal.
    
    {* ../../docs_src/response_change_status_code/tutorial001.py hl[1,9,12] *}
    
    E então você pode retornar qualquer objeto que você precise, como você faria normalmente (um `dict`, um modelo de banco de dados, etc.).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. docs/tr/docs/index.md

    </div>
    
    <details markdown="1">
    <summary><code>uvicorn main:app --reload</code> komutuyla ilgili...</summary>
    
    `uvicorn main:app` komutunu şu şekilde açıklayabiliriz:
    
    * `main`: dosya olan `main.py` (yani Python "modülü").
    * `app`: ise `main.py` dosyasının içerisinde `app = FastAPI()` satırında oluşturduğumuz `FastAPI` nesnesi.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *}
    
    ## Atualize as dependências
    
    Atualize `get_current_user` para receber o mesmo token de antes, mas desta vez, usando tokens JWT.
    
    Decodifique o token recebido, verifique-o e retorne o usuário atual.
    
    Se o token for inválido, retorne um erro HTTP imediatamente.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  7. docs/de/docs/advanced/testing-events.md

    Wenn Sie in Ihren Tests Ihre Event-Handler (`startup` und `shutdown`) ausführen wollen, können Sie den `TestClient` mit einer `with`-Anweisung verwenden:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 268 bytes
    - Viewed (0)
  8. docs/ko/docs/index.md

    ```
    
    </div>
    
    <details markdown="1">
    <summary><code>uvicorn main:app --reload</code> 명령에 관하여...</summary>
    
    명령 `uvicorn main:app`은 다음을 나타냅니다:
    
    * `main`: `main.py` 파일 (파이썬 "모듈").
    * `app`: the object created inside of `main.py` with the line `app = FastAPI()`.
    * `--reload`: 코드가 변경된 후 서버 재시작하기. 개발환경에서만 사용하십시오.
    
    </details>
    
    ### 확인하기
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/using-request-directly.md

    Imaginemos que quieres obtener la dirección IP/host del cliente dentro de tu *path operation function*.
    
    Para eso necesitas acceder al request directamente.
    
    {* ../../docs_src/using_request_directly/tutorial001.py hl[1,7:8] *}
    
    Al declarar un parámetro de *path operation function* con el tipo siendo `Request`, **FastAPI** sabrá pasar el `Request` en ese parámetro.
    
    /// tip | Consejo
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. docs/fr/docs/advanced/additional-status-codes.md

    Pour y parvenir, importez `JSONResponse` et renvoyez-y directement votre contenu, en définissant le `status_code` que vous souhaitez :
    
    {* ../../docs_src/additional_status_codes/tutorial001.py hl[4,25] *}
    
    /// warning | Attention
    
    Lorsque vous renvoyez une `Response` directement, comme dans l'exemple ci-dessus, elle sera renvoyée directement.
    
    Elle ne sera pas sérialisée avec un modèle.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top