Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 423 for modelos (0.04 seconds)

  1. docs/en/docs/tutorial/security/simple-oauth2.md

        disabled = user_dict["disabled"],
        hashed_password = user_dict["hashed_password"],
    )
    ```
    
    /// info
    
    For a more complete explanation of `**user_dict` check back in [the documentation for **Extra Models**](../extra-models.md#about-user-in-dict).
    
    ///
    
    ## Return the token { #return-the-token }
    
    The response of the `token` endpoint must be a JSON object.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. compat/maven-model/pom.xml

          <plugin>
            <groupId>org.codehaus.modello</groupId>
            <artifactId>modello-maven-plugin</artifactId>
            <configuration>
              <basedir>${project.basedir}/../../api/maven-api-model</basedir>
              <velocityBasedir>${project.basedir}/../../src/mdo</velocityBasedir>
              <version>4.1.0</version>
              <models>
                <model>src/main/mdo/maven.mdo</model>
              </models>
              <params>
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. scripts/playwright/cookie_param_models/image01.py

        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("link", name="/items/").click()
        # Manually add the screenshot
        page.screenshot(path="docs/en/docs/img/tutorial/cookie-param-models/image01.png")
    
        # ---------------------
        context.close()
        browser.close()
    
    
    process = subprocess.Popen(
        ["fastapi", "run", "docs_src/cookie_param_models/tutorial001.py"]
    )
    try:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Sep 17 18:54:10 GMT 2024
    - 1.2K bytes
    - Click Count (0)
  4. docs/ja/docs/tutorial/response-model.md

    ## ドキュメントを見る { #see-it-in-the-docs }
    
    自動ドキュメントを見ると、入力モデルと出力モデルがそれぞれ独自のJSON Schemaを持っていることが確認できます:
    
    <img src="/img/tutorial/response-model/image01.png">
    
    そして、両方のモデルは対話型のAPIドキュメントに使用されます:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## その他の戻り値の型アノテーション { #other-return-type-annotations }
    
    Pydanticフィールドとして有効ではないものを返し、ツール(エディタやmypyなど)が提供するサポートを得るためだけに、関数でそれをアノテーションするケースがあるかもしれません。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/response-model.md

    如此,你就能同時擁有兩種好處:具備工具支援的型別註解,以及資料過濾。
    
    ## 在文件中查看 { #see-it-in-the-docs }
    
    在自動文件中,你可以看到輸入模型與輸出模型各自都有自己的 JSON Schema:
    
    <img src="/img/tutorial/response-model/image01.png">
    
    而且兩個模型都會用在互動式 API 文件中:
    
    <img src="/img/tutorial/response-model/image02.png">
    
    ## 其他回傳型別註解 { #other-return-type-annotations }
    
    有時你回傳的東西不是有效的 Pydantic 欄位,你仍會在函式上加上註解,只為了獲得工具(編輯器、mypy 等)提供的支援。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 14.5K bytes
    - Click Count (0)
  6. docs/fr/docs/advanced/settings.md

    Importez `BaseSettings` depuis Pydantic et créez une sous-classe, comme pour un modèle Pydantic.
    
    De la même manière qu'avec les modèles Pydantic, vous déclarez des attributs de classe avec des annotations de type, et éventuellement des valeurs par défaut.
    
    Vous pouvez utiliser toutes les mêmes fonctionnalités et outils de validation que pour les modèles Pydantic, comme différents types de données et des validations supplémentaires avec `Field()`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/how-to/separate-openapi-schemas.md

    ### 文件中的輸入模型 { #input-model-in-docs }
    
    你可以在文件中確認,`description` 欄位沒有紅色星號,表示不是必填:
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image01.png">
    </div>
    
    ### 輸出用模型 { #model-for-output }
    
    但如果你把同一個模型用作輸出,如下所示:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py hl[19] *}
    
    ...由於 `description` 有預設值,就算你沒有為該欄位回傳任何內容,它仍會有那個預設值。
    
    ### 輸出回應資料的模型 { #model-for-output-response-data }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  8. docs/zh/docs/how-to/separate-openapi-schemas.md

    事实上,在某些情况下,对于同一个 Pydantic 模型,OpenAPI 中会根据是否带有**默认值**,为输入和输出分别生成**两个 JSON Schema**。
    
    我们来看看它如何工作,以及在需要时如何修改。
    
    ## 用于输入和输出的 Pydantic 模型 { #pydantic-models-for-input-and-output }
    
    假设你有一个带有默认值的 Pydantic 模型,例如:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *}
    
    ### 输入用的模型 { #model-for-input }
    
    如果你像下面这样把该模型用作输入:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  9. docs/tr/docs/how-to/separate-openapi-schemas.md

    ### Input için Model { #model-for-input }
    
    Bu modeli şöyle input olarak kullanırsanız:
    
    {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:15] hl[14] *}
    
    ...`description` alanı **zorunlu olmaz**. Çünkü `None` default değerine sahiptir.
    
    ### Dokümanlarda Input Modeli { #input-model-in-docs }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 05 15:43:38 GMT 2026
    - 4.8K bytes
    - Click Count (0)
  10. docs_src/events/tutorial003_py310.py

        return x * 42
    
    
    ml_models = {}
    
    
    @asynccontextmanager
    async def lifespan(app: FastAPI):
        # Load the ML model
        ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model
        yield
        # Clean up the ML models and release the resources
        ml_models.clear()
    
    
    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 569 bytes
    - Click Count (0)
Back to Top