Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1731 - 1740 of 1,989 for py$ (0.01 sec)

  1. docs/em/docs/advanced/events.md

    ```Python hl_lines="14-19"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    ๐Ÿฅ‡ ๐Ÿ• ๐Ÿ”ข, โญ `yield`, ๐Ÿ”œ ๐Ÿ› ๏ธ **โญ** ๐Ÿˆธ โ–ถ๏ธ.
    
    & ๐Ÿ• โฎ๏ธ `yield` ๐Ÿ”œ ๐Ÿ› ๏ธ **โฎ๏ธ** ๐Ÿˆธ โœ”๏ธ ๐Ÿ.
    
    ### ๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ
    
    ๐Ÿšฅ ๐Ÿ‘† โœ…, ๐Ÿ”ข ๐ŸŽ€ โฎ๏ธ `@asynccontextmanager`.
    
    ๐Ÿ‘ˆ ๐Ÿ—œ ๐Ÿ”ข ๐Ÿ”˜ ๐Ÿ•ณ ๐Ÿค™ "**๐Ÿ” ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ**".
    
    ```Python hl_lines="1  13"
    {!../../docs_src/events/tutorial003.py!}
    ```
    
    **๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ** ๐Ÿ ๐Ÿ•ณ ๐Ÿ‘ˆ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `with` ๐Ÿ“„, ๐Ÿ–ผ, `open()` ๐Ÿ’ช โš™๏ธ ๐Ÿ”‘ ๐Ÿ‘จโ€๐Ÿ’ผ:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/response-status-code.md

    ///
    
    ## โŒจ ๐Ÿ’ญ ๐Ÿ“›
    
    โžก๏ธ ๐Ÿ‘€ โฎ๏ธ ๐Ÿ–ผ ๐Ÿ”„:
    
    ```Python hl_lines="6"
    {!../../docs_src/response_status_code/tutorial001.py!}
    ```
    
    `201` ๐Ÿ‘” ๐Ÿ“Ÿ "โœ".
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿšซ โœ”๏ธ โœ โšซ๏ธโ” ๐Ÿ”  ๐Ÿ‘‰ ๐Ÿ“Ÿ โ›“.
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿช ๐Ÿ”ข โšช๏ธโžก๏ธ `fastapi.status`.
    
    ```Python hl_lines="1  6"
    {!../../docs_src/response_status_code/tutorial002.py!}
    ```
    
    ๐Ÿ‘ซ ๐Ÿช, ๐Ÿ‘ซ ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘ ๐ŸŽ ๐Ÿ”ข, โœ‹๏ธ ๐Ÿ‘ˆ ๐ŸŒŒ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ‘จโ€๐ŸŽจ ๐Ÿ“‹ ๐Ÿ”Ž ๐Ÿ‘ซ:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/background-tasks.md

    ใพใŸใ€ๆ›ธใ่พผใฟๆ“ไฝœใงใฏ `async` ใจ `await` ใ‚’ไฝฟ็”จใ—ใชใ„ใŸใ‚ใ€้€šๅธธใฎ `def` ใง้–ขๆ•ฐใ‚’ๅฎš็พฉใ—ใพใ™ใ€‚
    
    ```Python hl_lines="6-9"
    {!../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    ## ใƒใƒƒใ‚ฏใ‚ฐใƒฉใ‚ฆใƒณใƒ‰ใ‚ฟใ‚นใ‚ฏใฎ่ฟฝๅŠ 
    
    *path operations ้–ขๆ•ฐ* ๅ†…ใงใ€`.add_task()` ใƒกใ‚ฝใƒƒใƒ‰ใ‚’ไฝฟ็”จใ—ใฆใ‚ฟใ‚นใ‚ฏ้–ขๆ•ฐใ‚’ *background tasks* ใ‚ชใƒ–ใ‚ธใ‚งใ‚ฏใƒˆใซๆธกใ—ใพใ™ใ€‚
    
    ```Python hl_lines="14"
    {!../../docs_src/background_tasks/tutorial001.py!}
    ```
    
    `.add_task()` ใฏไปฅไธ‹ใฎๅผ•ๆ•ฐใ‚’ๅ—ใ‘ๅ–ใ‚Šใพใ™:
    
    * ใƒใƒƒใ‚ฏใ‚ฐใƒฉใ‚ฆใƒณใƒ‰ใงๅฎŸ่กŒใ•ใ‚Œใ‚‹ใ‚ฟใ‚นใ‚ฏ้–ขๆ•ฐ (`write_notification`)ใ€‚
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. docs/em/docs/advanced/behind-a-proxy.md

    ///
    
    ### โœ… โฎ๏ธ `root_path`
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿคš โฎ๏ธ `root_path` โš™๏ธ ๐Ÿ‘† ๐Ÿˆธ ๐Ÿ”  ๐Ÿ“จ, โšซ๏ธ ๐Ÿ• `scope` ๐Ÿ“– (๐Ÿ‘ˆ ๐Ÿ• ๐Ÿ”ซ ๐Ÿ”Œ).
    
    ๐Ÿ“ฅ ๐Ÿ‘ฅ โœ… โšซ๏ธ ๐Ÿ“ง ๐ŸŽฆ ๐ŸŽฏ.
    
    ```Python hl_lines="8"
    {!../../docs_src/behind_a_proxy/tutorial001.py!}
    ```
    
    โคด๏ธ, ๐Ÿšฅ ๐Ÿ‘† โ–ถ๏ธ Uvicorn โฎ๏ธ:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --root-path /api/v1
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/security/http-basic-auth.md

    * โœ "`security` โš–" โš™๏ธ `HTTPBasic`.
    * โš™๏ธ ๐Ÿ‘ˆ `security` โฎ๏ธ ๐Ÿ”— ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*.
    * โšซ๏ธ ๐Ÿ“จ ๐ŸŽš ๐Ÿ†Ž `HTTPBasicCredentials`:
        * โšซ๏ธ ๐Ÿ”Œ `username` &amp; `password` ๐Ÿ“จ.
    
    ```Python hl_lines="2  6  10"
    {!../../docs_src/security/tutorial006.py!}
    ```
    
    ๐Ÿ•โ” ๐Ÿ‘† ๐Ÿ”„ ๐Ÿ“‚ ๐Ÿ“› ๐Ÿฅ‡ ๐Ÿ•ฐ (โš–๏ธ ๐Ÿ–Š "๐Ÿ› ๏ธ" ๐Ÿ”ผ ๐Ÿฉบ) ๐Ÿ–ฅ ๐Ÿ”œ ๐Ÿ’ญ ๐Ÿ‘† ๐Ÿ‘† ๐Ÿ†” &amp; ๐Ÿ”:
    
    <img src="/img/tutorial/security/image12.png">
    
    ## โœ… ๐Ÿ†”
    
    ๐Ÿ“ฅ ๐ŸŒ… ๐Ÿ ๐Ÿ–ผ.
    
    โš™๏ธ ๐Ÿ”— โœ… ๐Ÿšฅ ๐Ÿ†” &amp; ๐Ÿ” โ˜‘.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/middleware.md

    {* ../../docs_src/advanced_middleware/tutorial001.py hl[2,6] *}
    
    ## `TrustedHostMiddleware`
    
    Garante que todas as requisiรงรตes recebidas tenham um cabeรงalho `Host` corretamente configurado, a fim de proteger contra ataques de cabeรงalho de host HTTP.
    
    {* ../../docs_src/advanced_middleware/tutorial002.py hl[2,6:8] *}
    
    Os seguintes argumentos sรฃo suportados:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 30 20:00:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. BUILD

    exports_files(glob(["requirements*"]) + [
        "configure",
        "configure.py",
        "ACKNOWLEDGEMENTS",
        "LICENSE",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Jun 29 00:19:18 UTC 2024
    - 121 bytes
    - Viewed (0)
  8. docs/em/docs/deployment/docker.md

    ```
    
    </div>
    
    /// info
    
    ๐Ÿ“ค ๐ŸŽ ๐Ÿ“ &amp; ๐Ÿงฐ ๐Ÿ”ฌ &amp; โŽ ๐Ÿ“ฆ ๐Ÿ”—.
    
    ๐Ÿ‘ค ๐Ÿ”œ ๐ŸŽฆ ๐Ÿ‘† ๐Ÿ–ผ โš™๏ธ ๐ŸŽถ โช ๐Ÿ“„ ๐Ÿ”›. ๐Ÿ‘ถ
    
    ///
    
    ### โœ **FastAPI** ๐Ÿ“Ÿ
    
    * โœ `app` ๐Ÿ“ &amp; โ›” โšซ๏ธ.
    * โœ ๐Ÿ› ๐Ÿ“ `__init__.py`.
    * โœ `main.py` ๐Ÿ“ โฎ๏ธ:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/middleware.md

    * Sie kรถnnen die `response` dann weiter modifizieren, bevor Sie sie zurรผckgeben.
    
    ```Python hl_lines="8-9  11  14"
    {!../../docs_src/middleware/tutorial001.py!}
    ```
    
    /// tip | "Tipp"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/response-directly.md

    Para esses casos, vocรช pode usar o `jsonable_encoder` para converter seus dados antes de repassรก-los para a resposta:
    
    ```Python hl_lines="6-7  21-22"
    {!../../docs_src/response_directly/tutorial001.py!}
    ```
    
    /// note | Detalhes Tรฉcnicos
    
    Vocรช tambรฉm pode utilizar `from starlette.responses import JSONResponse`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top