Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 787 for py (0.01 sec)

  1. docs/id/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial003.py hl[6,11] *}
    
    Sebaliknya, path `/users/{user_id}` juga akan sesuai dengan `/users/me`, "menganggap" menerima parameter `user_id` dengan nilai `"me"`.
    
    Serupa, anda juga tidak bisa mendefinisikan operasi path:
    
    {* ../../docs_src/path_params/tutorial003b.py hl[6,11] *}
    
    Path pertama akan selalu digunakan karena path sesuai dengan yang pertama.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/debugging.md

    In your FastAPI application, import and run `uvicorn` directly:
    
    {* ../../docs_src/debugging/tutorial001.py hl[1,15] *}
    
    ### About `__name__ == "__main__"` { #about-name-main }
    
    The main purpose of the `__name__ == "__main__"` is to have some code that is executed when your file is called with:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    but is not called when another file imports it, like in:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    O valor gerado (yielded) é o que é injetado nas *operações de rota* e outras dependências.
    
    {* ../../docs_src/dependencies/tutorial007.py hl[4] *}
    
    O código após o `yield` é executado após a resposta ser entregue:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[5:6] *}
    
    /// tip | Dica
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/path-params-numeric-validations.md

    ///
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002.py hl[7] *}
    
    ////
    
    But keep in mind that if you use `Annotated`, you won't have this problem, it won't matter as you're not using the function parameter default values for `Query()` or `Path()`.
    
    {* ../../docs_src/path_params_numeric_validations/tutorial002_an_py39.py *}
    
    ## Order the parameters as you need, tricks { #order-the-parameters-as-you-need-tricks }
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  5. docs/ko/docs/advanced/custom-response.md

    이 경우, *경로 작업* 함수에서 URL을 직접 반환할 수 있습니다.
    
    이 경우, 사용되는 `status_code`는 `RedirectResponse`의 기본값인 `307` 입니다.
    
    ---
    
    `status_code` 매개변수를 `response_class` 매개변수와 함께 사용할 수도 있습니다:
    
    {* ../../docs_src/custom_response/tutorial006c.py hl[2,7,9] *}
    
    ### `StreamingResponse`
    
    비동기 제너레이터 또는 일반 제너레이터/이터레이터를 받아 응답 본문을 스트리밍 합니다.
    
    {* ../../docs_src/custom_response/tutorial007.py hl[2,14] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 11:21:20 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  6. docs/ru/docs/advanced/websockets.md

    {* ../../docs_src/websockets/tutorial001.py hl[48:52] *}
    
    Вы можете получать и отправлять двоичные, текстовые и JSON данные.
    
    ## Проверка в действии
    
    Если ваш файл называется `main.py`, то запустите приложение командой:
    
    <div class="termy">
    
    ```console
    $ fastapi dev main.py
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Feb 03 13:33:39 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  7. docs/em/docs/tutorial/path-params-numeric-validations.md

    ## 🗄 ➡
    
    🥇, 🗄 `Path` ⚪️➡️ `fastapi`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[3] *}
    
    ## 📣 🗃
    
    👆 💪 📣 🌐 🎏 🔢 `Query`.
    
    🖼, 📣 `title` 🗃 💲 ➡ 🔢 `item_id` 👆 💪 🆎:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001.py hl[10] *}
    
    /// note
    
    ➡ 🔢 🕧 ✔ ⚫️ ✔️ 🍕 ➡.
    
    , 👆 🔜 📣 ⚫️ ⏮️ `...` ™ ⚫️ ✔.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. docs/pt/docs/how-to/custom-docs-ui-assets.md

    Vamos supor que a estrutura de arquivos do seu projeto se pareça com isso:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    ```
    
    Agora crie um diretório para armazenar esses arquivos estáticos.
    
    Sua nova estrutura de arquivos poderia se parecer com isso:
    
    ```
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    └── static/
    ```
    
    ### Baixe os arquivos
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Apr 28 18:31:44 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/custom-response.md

    {* ../../docs_src/response_directly/tutorial002.py hl[1,18] *}
    
    ### `HTMLResponse`
    
    Nimmt Text oder Bytes entgegen und gibt eine HTML-Response zurück, wie Sie oben gelesen haben.
    
    ### `PlainTextResponse`
    
    Nimmt Text oder Bytes entgegen und gibt eine Plain-Text-Response zurück.
    
    {* ../../docs_src/custom_response/tutorial005.py hl[2,7,9] *}
    
    ### `JSONResponse`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. docs/vi/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial009_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+ alternative
    
    ```Python hl_lines="1  4"
    {!> ../../docs_src/python_types/tutorial009b.py!}
    ```
    
    ////
    
    #### Sử dụng `Union` hay `Optional`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 21.5K bytes
    - Viewed (0)
Back to top