Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 645 for Pythons (0.2 sec)

  1. docs/uk/docs/tutorial/body.md

    Використовуйте стандартні типи Python для всіх атрибутів:
    
    {* ../../docs_src/body/tutorial001.py hl[7:11] *}
    
    Так само, як і при оголошенні параметрів запиту, коли атрибут моделі має значення за замовчуванням, він не є обов’язковим. В іншому випадку це потрібно. Використовуйте `None`, щоб зробити його необов'язковим.
    
    Наприклад, ця модель вище оголошує JSON "`об'єкт`" (або Python `dict`), як:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/header-params.md

    ほとんどの標準ヘッダーは、「マイナス記号」(`-`)としても知られる「ハイフン」で区切られています。
    
    しかし、`user-agent`のような変数はPythonでは無効です。
    
    そのため、デフォルトでは、`Header`はパラメータの文字をアンダースコア(`_`)からハイフン(`-`)に変換して、ヘッダーを抽出して文書化します。
    
    また、HTTPヘッダは大文字小文字を区別しないので、Pythonの標準スタイル(別名「スネークケース」)で宣言することができます。
    
    そのため、`User_Agent`などのように最初の文字を大文字にする必要はなく、通常のPythonコードと同じように`user_agent`を使用することができます。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/dependencies/sub-dependencies.md

    //// tab | Python 3.9+
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.9+ non-Annotated
    
    /// tip | Dica
    
    Utilize a versão com `Annotated` se possível.
    
    ///
    
    ```Python hl_lines="1"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    /// tip | 팁
    
    각 의존성마다 `yield`는 한 번만 사용해야 합니다.
    
    ///
    
    /// note | 기술 세부사항
    
    다음과 함께 사용할 수 있는 모든 함수:
    
    * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a> 또는
    * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager" class="external-link" target="_blank">`@contextlib.asynccontextmanager`</a>
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Feb 09 14:54:09 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/path-params-numeric-validations.md

    * declare the path parameter `item_id` using `Path`
    * have them in a different order
    * not use `Annotated`
    
    ...Python has a little special syntax for that.
    
    Pass `*`, as the first parameter of the function.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/custom-response.md

    /// info
    
    This requires installing `ujson` for example with `pip install ujson`.
    
    ///
    
    /// warning
    
    `ujson` is less careful than Python's built-in implementation in how it handles some edge-cases.
    
    ///
    
    {* ../../docs_src/custom_response/tutorial001_py39.py hl[2,7] *}
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/request-form-models.md

    FastAPI에서 **Pydantic 모델**을 이용하여 **폼 필드**를 선언할 수 있습니다.
    
    /// info | 정보
    
    폼(Form)을 사용하려면, 먼저 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>를 설치하세요.
    
    [가상 환경](../virtual-environments.md){.internal-link target=_blank}을 생성하고 활성화한 다음, 아래와 같이 설치할 수 있습니다:
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    /// note | 참고
    
    이 기능은 FastAPI 버전 `0.113.0` 이후부터 지원됩니다. 🤓
    
    ///
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:44:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/security/first-steps.md

    ## Execute-o { #run-it }
    
    /// info | Informação
    
    O pacote <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a> é instalado automaticamente com o **FastAPI** quando você executa o comando `pip install "fastapi[standard]"`.
    
    Entretanto, se você usar o comando `pip install fastapi`, o pacote `python-multipart` não é incluído por padrão.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/security/first-steps.md

    ## Ejecútalo { #run-it }
    
    /// info | Información
    
    El paquete <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a> se instala automáticamente con **FastAPI** cuando ejecutas el comando `pip install "fastapi[standard]"`.
    
    Sin embargo, si usas el comando `pip install fastapi`, el paquete `python-multipart` no se incluye por defecto.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/events.md

    Ein **Kontextmanager** in Python ist etwas, das Sie in einer `with`-Anweisung verwenden können, zum Beispiel kann `open()` als Kontextmanager verwendet werden:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In neueren Versionen von Python gibt es auch einen **asynchronen Kontextmanager**. Sie würden ihn mit `async with` verwenden:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 9.5K bytes
    - Viewed (0)
Back to top