Search Options

Results per page
Sort
Preferred Languages
Advance

Results 791 - 800 of 873 for Python3 (0.06 sec)

  1. docs/em/docs/how-to/conditional-openapi.md

    * ...โ™’๏ธ.
    
    ๐Ÿ‘, ๐Ÿ‘† 5๏ธโƒฃ๐Ÿ“† โœ”๏ธ ๐Ÿ“ถ ๐ŸŽฏ โš™๏ธ ๐Ÿ’ผ ๐ŸŒโ” ๐Ÿ‘† ๐Ÿค™ ๐Ÿ’ช โŽ ๐Ÿ› ๏ธ ๐Ÿฉบ ๐ŸŒ (โœ… ๐Ÿญ) โš–๏ธ โš“๏ธ ๐Ÿ”› ๐Ÿ“ณ โšช๏ธโžก๏ธ ๐ŸŒ ๐Ÿ”ข.
    
    ## ๐ŸŽฒ ๐Ÿ—„ โšช๏ธโžก๏ธ โš’ & ๐Ÿ‡จ๐Ÿ‡ป {
    
    ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ’ช โš™๏ธ ๐ŸŽ Pydantic โš’ ๐Ÿ”— ๐Ÿ‘† ๐Ÿ— ๐Ÿ—„ & ๐Ÿฉบ โšœ.
    
    ๐Ÿ–ผ:
    
    ```Python hl_lines="6  11"
    {!../../docs_src/conditional_openapi/tutorial001.py!}
    ```
    
    ๐Ÿ“ฅ ๐Ÿ‘ฅ ๐Ÿ“ฃ โš’ `openapi_url` โฎ๏ธ ๐ŸŽ ๐Ÿ”ข `"/openapi.json"`.
    
    & โคด๏ธ ๐Ÿ‘ฅ โš™๏ธ โšซ๏ธ ๐Ÿ•โ” ๐Ÿ— `FastAPI` ๐Ÿ“ฑ.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. docs/ko/docs/advanced/response-change-status-code.md

    ์ด๋Ÿฐ ๊ฒฝ์šฐ์—๋Š” `Response` ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ## `Response` ํŒŒ๋ผ๋ฏธํ„ฐ ์‚ฌ์šฉํ•˜๊ธฐ
    
    *๊ฒฝ๋กœ ์ž‘๋™ ํ•จ์ˆ˜*์— `Response` ํƒ€์ž…์˜ ํŒŒ๋ผ๋ฏธํ„ฐ๋ฅผ ์„ ์–ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. (์ฟ ํ‚ค์™€ ํ—ค๋”์— ๋Œ€ํ•ด ์„ ์–ธํ•˜๋Š” ๊ฒƒ๊ณผ ์œ ์‚ฌํ•˜๊ฒŒ)
    
    ๊ทธ๋ฆฌ๊ณ  ์ด *์ž„์‹œ* ์‘๋‹ต ๊ฐ์ฒด์—์„œ `status_code`๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    ๊ทธ๋ฆฌ๊ณ  ํ‰์†Œ์ฒ˜๋Ÿผ ์›ํ•˜๋Š” ๊ฐ์ฒด(`dict`, ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ชจ๋ธ ๋“ฑ)๋ฅผ ๋ฐ˜ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    `response_model`์„ ์„ ์–ธํ–ˆ๋‹ค๋ฉด ๋ฐ˜ํ™˜๋œ ๊ฐ์ฒด๋Š” ์—ฌ์ „ํžˆ ํ•„ํ„ฐ๋ง๋˜๊ณ  ๋ณ€ํ™˜๋ฉ๋‹ˆ๋‹ค.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 22:01:39 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-status-code.md

    ///
    
    The `status_code` parameter receives a number with the HTTP status code.
    
    /// info
    
    `status_code` can alternatively also receive an `IntEnum`, such as Python's <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>.
    
    ///
    
    It will:
    
    * Return that status code in the response.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:13:18 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/cors.md

    * โœ ๐Ÿ“‡ โœ” ๐Ÿ‡จ๐Ÿ‡ณ (๐ŸŽป).
    * ๐Ÿšฎ โšซ๏ธ "๐Ÿ› ๏ธ" ๐Ÿ‘† **FastAPI** ๐Ÿˆธ.
    
    ๐Ÿ‘† ๐Ÿ’ช โœ” ๐Ÿšฅ ๐Ÿ‘† ๐Ÿ‘ฉโ€๐Ÿ’ป โœ”:
    
    * ๐ŸŽ“ (โœ” ๐ŸŽš, ๐Ÿช, โ™’๏ธ).
    * ๐ŸŽฏ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐Ÿ‘ฉโ€๐Ÿ”ฌ (`POST`, `PUT`) โš–๏ธ ๐ŸŒ ๐Ÿ‘ซ โฎ๏ธ ๐Ÿƒ `"*"`.
    * ๐ŸŽฏ ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” ๐ŸŽš โš–๏ธ ๐ŸŒ ๐Ÿ‘ซ โฎ๏ธ ๐Ÿƒ `"*"`.
    
    ```Python hl_lines="2  6-11  13-19"
    {!../../docs_src/cors/tutorial001.py!}
    ```
    
    ๐Ÿ”ข ๐Ÿ”ข โš™๏ธ `CORSMiddleware` ๐Ÿ› ๏ธ ๐Ÿšซ ๐Ÿ”ข, ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ’ช ๐ŸŽฏ ๐Ÿ› ๏ธ ๐ŸŽฏ ๐Ÿ‡จ๐Ÿ‡ณ, ๐Ÿ‘ฉโ€๐Ÿ”ฌ, โš–๏ธ ๐ŸŽš, โœ” ๐Ÿ–ฅ โœ” โš™๏ธ ๐Ÿ‘ซ โœ–๏ธ-๐Ÿ†” ๐Ÿ”‘.
    
    ๐Ÿ“„ โŒ ๐Ÿ•โ€๐Ÿฆบ:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. docs/pl/docs/tutorial/first-steps.md

    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    /// note
    
    Polecenie `uvicorn main:app` odnosi siฤ™ do:
    
    * `main`: plik `main.py` ("moduล‚" Python).
    * `app`: obiekt utworzony w pliku `main.py` w lini `app = FastAPI()`.
    * `--reload`: sprawia, ลผe serwer uruchamia siฤ™ ponownie po zmianie kodu. Uลผywany tylko w trakcie tworzenia oprogramowania.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:51:30 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/openapi-webhooks.md

    Wenn Sie eine **FastAPI**-Anwendung erstellen, gibt es ein `webhooks`-Attribut, mit dem Sie *Webhooks* definieren kรถnnen, genauso wie Sie *Pfadoperationen* definieren wรผrden, zum Beispiel mit `@app.webhooks.post()`.
    
    ```Python hl_lines="9-13  36-53"
    {!../../docs_src/openapi_webhooks/tutorial001.py!}
    ```
    
    Die von Ihnen definierten Webhooks landen im **OpenAPI**-Schema und der automatischen **Dokumentations-Oberflรคche**.
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/using-request-directly.md

    ## Use the `Request` object directly
    
    Let's imagine you want to get the client's IP address/host inside of your *path operation function*.
    
    For that you need to access the request directly.
    
    ```Python hl_lines="1  7-8"
    {!../../docs_src/using_request_directly/tutorial001.py!}
    ```
    
    By declaring a *path operation function* parameter with the type being the `Request` **FastAPI** will know to pass the `Request` in that parameter.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/index.md

    Ele tambรฉm foi feito como referรชncia futura.
    
    Entรฃo vocรช poderรก voltar e ver exatamente o que precisar.
    
    ## Rode o cรณdigo
    
    Todos os blocos de cรณdigo podem ser copiados e utilizados diretamente (eles sรฃo, na verdade, arquivos Python testados).
    
    Para rodar qualquer um dos exemplos, copie o codigo para um arquivo `main.py`, e inicie o `uvivorn` com:
    
    <div class="termy">
    
    ```console
    $ uvicorn main:app --reload
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. fastapi/_compat.py

                        errors=exc.errors(include_url=False), loc_prefix=loc
                    )
    
            def serialize(
                self,
                value: Any,
                *,
                mode: Literal["json", "python"] = "json",
                include: Union[IncEx, None] = None,
                exclude: Union[IncEx, None] = None,
                by_alias: bool = True,
                exclude_unset: bool = False,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/cors.md

    * ะฃั‡ั‘ั‚ะฝั‹ั… ะดะฐะฝะฝั‹ั… (ะฒะบะปัŽั‡ะฐั ะทะฐะณะพะปะพะฒะบะธ Authorization, ะบัƒะบะธ ะธ ั‚.ะฟ.).
    * ะžั‚ะดะตะปัŒะฝั‹ั… HTTP-ะผะตั‚ะพะดะพะฒ (`POST`, `PUT`) ะธะปะธ ะฒัะตั… ะฒะผะตัั‚ะต, ะธัะฟะพะปัŒะทัƒั `"*"`.
    * ะžั‚ะดะตะปัŒะฝั‹ั… HTTP-ะทะฐะณะพะปะพะฒะบะพะฒ ะธะปะธ ะฒัะตั… ะฒะผะตัั‚ะต, ะธัะฟะพะปัŒะทัƒั `"*"`.
    
    ```Python hl_lines="2  6-11  13-19"
    {!../../docs_src/cors/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top