Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 681 for Python3 (0.08 sec)

  1. docs/en/docs/tutorial/middleware.md

    {* ../../docs_src/middleware/tutorial001.py hl[10,12:13] *}
    
    /// tip
    
    Here we use <a href="https://docs.python.org/3/library/time.html#time.perf_counter" class="external-link" target="_blank">`time.perf_counter()`</a> instead of `time.time()` because it can be more precise for these use cases. ๐Ÿค“
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. docs/ko/docs/advanced/templates.md

    * ๋‚˜์ค‘์— ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” `templates` ๊ฐ์ฒด๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
    * ํ…œํ”Œ๋ฆฟ์„ ๋ฐ˜ํ™˜ํ•  ๊ฒฝ๋กœ ์ž‘์—…์— `Request` ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•ฉ๋‹ˆ๋‹ค.
    * ์ƒ์„ฑํ•œ `templates`๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ `TemplateResponse`๋ฅผ ๋ Œ๋”๋งํ•˜๊ณ  ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ํ…œํ”Œ๋ฆฟ์˜ ์ด๋ฆ„, ์š”์ฒญ ๊ฐ์ฒด ๋ฐ Jinja2 ํ…œํ”Œ๋ฆฟ ๋‚ด์—์„œ ์‚ฌ์šฉ๋  ํ‚ค-๊ฐ’ ์Œ์ด ํฌํ•จ๋œ "์ปจํ…์ŠคํŠธ" ๋”•์…”๋„ˆ๋ฆฌ๋„ ์ „๋‹ฌํ•ฉ๋‹ˆ๋‹ค.
    
    
    ```Python hl_lines="4  11  15-18"
    {!../../docs_src/templates/tutorial001.py!}
    ```
    
    /// note | ์ฐธ๊ณ 
    
    FastAPI 0.108.0 ์ด์ „๊ณผ Starlette 0.29.0์—์„œ๋Š” `name`์ด ์ฒซ ๋ฒˆ์งธ ๋งค๊ฐœ๋ณ€์ˆ˜์˜€์Šต๋‹ˆ๋‹ค.
    
    ๋˜ํ•œ ์ด์ „ ๋ฒ„์ „์—์„œ๋Š” `request` ๊ฐ์ฒด๊ฐ€ Jinja2์˜ ์ปจํ…์ŠคํŠธ์—์„œ ํ‚ค-๊ฐ’ ์Œ์˜ ์ผ๋ถ€๋กœ ์ „๋‹ฌ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 13:07:23 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. docs/ko/docs/advanced/middlewares.md

    ๋”ฐ๋ผ์„œ ํƒ€์‚ฌ ASGI ๋ฏธ๋“ค์›จ์–ด ๋ฌธ์„œ์—์„œ ์ผ๋ฐ˜์ ์œผ๋กœ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์‚ฌ์šฉํ•˜๋„๋ก ์•ˆ๋‚ดํ•  ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    ํ•˜์ง€๋งŒ ๋‚ด๋ถ€ ๋ฏธ๋“ค์›จ์–ด๊ฐ€ ์„œ๋ฒ„ ์˜ค๋ฅ˜๋ฅผ ์ฒ˜๋ฆฌํ•˜๊ณ  ์‚ฌ์šฉ์ž ์ •์˜ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๊ธฐ๊ฐ€ ์ œ๋Œ€๋กœ ์ž‘๋™ํ•˜๋„๋ก ํ•˜๋Š” ๋” ๊ฐ„๋‹จํ•œ ๋ฐฉ๋ฒ•์„ ์ œ๊ณตํ•˜๋Š” FastAPI(์‹ค์ œ๋กœ๋Š” Starlette)๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ์ด๋ฅผ ์œ„ํ•ด `app.add_middleware()`๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค(CORS์˜ ์˜ˆ์—์„œ์™€ ๊ฐ™์ด).
    
    ```Python
    from fastapi import FastAPI
    from unicorn import UnicornMiddleware
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Nov 26 22:35:09 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. docs/pt/docs/fastapi-cli.md

    <font color="#3465A4">INFO    </font> Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
    
     โ•ญโ”€ <font color="#8AE234"><b>Python module file</b></font> โ”€โ•ฎ
     โ”‚                      โ”‚
     โ”‚  ๐Ÿ main.py          โ”‚
     โ”‚                      โ”‚
     โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
    
    <font color="#3465A4">INFO    </font> Importing module <font color="#4E9A06">main</font>
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. ci/official/requirements_updater/requirements.in

    # Note that numpy 2.1.0 does not support python 3.9
    numpy >= 2.0.0, < 2.2.0
    wheel ~= 0.41.2
    h5py >= 3.11.0
    lit ~= 17.0.2
    opt_einsum == 3.3.0
    astunparse == 1.6.3
    dill == 0.3.7
    astor == 0.7.1
    typing_extensions ~= 4.14.1
    gast == 0.4.0
    termcolor == 2.3.0
    wrapt == 1.16.0
    tblib == 2.0.0
    ml_dtypes >= 0.5.1, < 0.6.0
    auditwheel >= 6.1.0
    # Install tensorboard, and keras
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Wed Sep 03 23:57:17 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  6. docs/en/docs/reference/templating.md

    Read more about it in the [FastAPI docs for Templates](https://fastapi.tiangolo.com/advanced/templates/).
    
    You can import it directly from `fastapi.templating`:
    
    ```python
    from fastapi.templating import Jinja2Templates
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 365 bytes
    - Viewed (0)
  7. docs/en/docs/advanced/openapi-callbacks.md

    The actual callback code will depend heavily on your own API app.
    
    And it will probably vary a lot from one app to the next.
    
    It could be just one or two lines of code, like:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/openapi-callbacks.md

    O cรณdigo real do callback dependerรก muito do seu prรณprio aplicativo de API.
    
    E provavelmente variarรก muito de um aplicativo para o outro.
    
    Poderia ser apenas uma ou duas linhas de cรณdigo, como:
    
    ```Python
    callback_url = "https://example.com/api/v1/invoices/events/"
    httpx.post(callback_url, json={"description": "Invoice paid", "paid": True})
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. docs/tr/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    /// note | Not
    
    `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: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. docs/en/docs/reference/uploadfile.md

    # `UploadFile` class
    
    You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import UploadFile
    ```
    
    ::: fastapi.UploadFile
        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 472 bytes
    - Viewed (0)
Back to top