Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 374 for models3 (0.1 seconds)

  1. fastapi/security/api_key.py

    from typing import Annotated
    
    from annotated_doc import Doc
    from fastapi.openapi.models import APIKey, APIKeyIn
    from fastapi.security.base import SecurityBase
    from starlette.exceptions import HTTPException
    from starlette.requests import Request
    from starlette.status import HTTP_401_UNAUTHORIZED
    
    
    class APIKeyBase(SecurityBase):
        model: APIKey
    
        def __init__(
            self,
            location: APIKeyIn,
            name: str,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 9.6K bytes
    - Click Count (1)
  2. docs/fr/docs/tutorial/testing.md

    /// info
    
    Notez que le `TestClient` reçoit des données qui peuvent être converties en JSON, pas des modèles Pydantic.
    
    Si vous avez un modèle Pydantic dans votre test et que vous souhaitez envoyer ses données à l’application pendant les tests, vous pouvez utiliser le `jsonable_encoder` décrit dans [Encodeur compatible JSON](encoder.md).
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[1,6:9] *}
    
    /// tip
    
    If you are wondering, "AlexNet", "ResNet", and "LeNet" are just names of Machine Learning <dfn title="Technically, Deep Learning model architectures">models</dfn>.
    
    ///
    
    ### Declare a *path parameter* { #declare-a-path-parameter }
    
    Then create a *path parameter* with a type annotation using the enum class you created (`ModelName`):
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/security/get-current-user.md

    ///
    
    /// check | 確認
    
    依存関係システムがこのように設計されているおかげで、 `User` モデルを返却する別の依存関係(別の「dependables」)を持つことができます。
    
    同じデータ型を返却する依存関係は一つだけしか持てない、という制約が入ることはないのです。
    
    ///
    
    ## 別のモデル { #other-models }
    
    これで、*path operation 関数* の中で現在のユーザーを直接取得し、`Depends` を使って、 **依存性注入** レベルでセキュリティメカニズムを処理できるようになりました。
    
    そして、セキュリティ要件のためにどんなモデルやデータでも利用することができます。(この場合は、 Pydanticモデルの `User`)
    
    しかし、特定のデータモデルやクラス、型に制限されることはありません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  5. docs/ru/docs/tutorial/schema-extra-example.md

    Вы можете объявлять примеры данных, которые ваше приложение может получать.
    
    Вот несколько способов, как это сделать.
    
    ## Дополнительные данные JSON Schema в моделях Pydantic { #extra-json-schema-data-in-pydantic-models }
    
    Вы можете объявить `examples` для модели Pydantic, которые будут добавлены в сгенерированную JSON Schema.
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. docs/de/docs/tutorial/first-steps.md

    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Sie können ein `dict`, eine `list`, einzelne Werte wie `str`, `int`, usw. zurückgeben.
    
    Sie können auch Pydantic-Modelle zurückgeben (dazu später mehr).
    
    Es gibt viele andere Objekte und Modelle, die automatisch zu JSON konvertiert werden (einschließlich ORMs, usw.). Versuchen Sie, Ihre Lieblingsobjekte zu verwenden. Es ist sehr wahrscheinlich, dass sie bereits unterstützt werden.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 14.9K bytes
    - Click Count (0)
  7. impl/maven-core/lifecycle-executor.txt

            </parameter>
          </parameters>
    
    - we need to know what came from the POM, and validate those
    - plugin in any default values
    - check to see if anything is missing
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 9.7K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/tutorial/security/simple-oauth2.md

        full_name = user_dict["full_name"],
        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info
    
    想更完整地了解 `**user_dict`,請回到[**額外模型** 的文件](../extra-models.md#about-user-in-dict)。
    
    ///
    
    ## 回傳 token { #return-the-token }
    
    `token` 端點的回應必須是 JSON 物件。
    
    它應該有一個 `token_type`。在本例中,我們使用「Bearer」tokens,token 類型應該是「`bearer`」。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.1K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/schema-extra-example.md

    Ви можете задати приклади даних, які ваш застосунок може отримувати.
    
    Ось кілька способів, як це зробити.
    
    ## Додаткові дані Схеми JSON у моделях Pydantic { #extra-json-schema-data-in-pydantic-models }
    
    Ви можете задати `examples` для моделі Pydantic, які буде додано до згенерованої Схеми JSON.
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/body-multiple-params.md

    Supposons que vous n'ayez qu'un seul paramètre `item` dans le corps de la requête, provenant d'un modèle Pydantic `Item`.
    
    Par défaut, **FastAPI** attendra alors son contenu directement.
    
    Mais si vous voulez qu'il attende un JSON avec une clé `item` contenant le contenu du modèle, comme lorsqu'on déclare des paramètres supplémentaires du corps de la requête, vous pouvez utiliser le paramètre spécial `embed` de `Body` :
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:12:41 GMT 2026
    - 5.9K bytes
    - Click Count (0)
Back to Top