Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 127 for Model (9.18 sec)

  1. docs/tr/docs/project-generation.md

    ### Machine Learning modelleri, spaCy ve FastAPI - Features
    
    * **spaCy** NER model entegrasyonu.
    * **Azure Cognitive Search** yerleşik istek biçimi.
    * Uvicorn ve Gunicorn ile **Production ready** Python web server'ı.
    * Dahili **Azure DevOps** Kubernetes (AKS) CI/CD deployment.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 19:55:41 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/response-headers.md

    然后你可以在这个*临时*响应对象中设置头部。
    ```Python hl_lines="1  7-8"
    {!../../../docs_src/response_headers/tutorial002.py!}
    ```
    
    然后你可以像平常一样返回任何你需要的对象(例如一个`dict`或者一个数据库模型)。如果你声明了一个`response_model`,它仍然会被用来过滤和转换你返回的对象。
    
    **FastAPI**将使用这个临时响应来提取头部(也包括cookies和状态码),并将它们放入包含你返回的值的最终响应中,该响应由任何`response_model`过滤。
    
    你也可以在依赖项中声明`Response`参数,并在其中设置头部(和cookies)。
    
    ## 直接返回 `Response`
    
    你也可以在直接返回`Response`时添加头部。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

        ```
    
    ### Check the password
    
    At this point we have the user data from our database, but we haven't checked the password.
    
    Let's put that data in the Pydantic `UserInDB` model first.
    
    You should never save plaintext passwords, so, we'll use the (fake) password hashing system.
    
    If the passwords don't match, we return the same error.
    
    #### Password hashing
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/settings.md

        ```Python hl_lines="9"
        {!> ../../../docs_src/settings/app03_an/config.py!}
        ```
    
        !!! tip
            The `model_config` attribute is used just for Pydantic configuration. You can read more at <a href="https://docs.pydantic.dev/latest/usage/model_config/" class="external-link" target="_blank">Pydantic Model Config</a>.
    
    === "Pydantic v1"
    
        ```Python hl_lines="9-10"
        {!> ../../../docs_src/settings/app03_an/config_pv1.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/extra-models.md

        ```
    
    !!! info
        In Pydantic v1 hieß diese Methode `.dict()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_dump()` umbenannt.
    
        Die Beispiele hier verwenden `.dict()` für die Kompatibilität mit Pydantic v1, Sie sollten jedoch stattdessen `.model_dump()` verwenden, wenn Sie Pydantic v2 verwenden können.
    
    ### Über `**user_in.dict()`
    
    #### Pydantic's `.dict()`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:47 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/path-operation-advanced-configuration.md

    ```Python hl_lines="19-29"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial004.py!}
    ```
    
    ## Zusätzliche Responses
    
    Sie haben wahrscheinlich gesehen, wie man das `response_model` und den `status_code` für eine *Pfadoperation* deklariert.
    
    Das definiert die Metadaten der Haupt-Response einer *Pfadoperation*.
    
    Sie können auch zusätzliche Responses mit deren Modellen, Statuscodes usw. deklarieren.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:23 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/openapi-callbacks.md

    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    ### 创建回调*路径操作*
    
    创建回调*路径操作*也使用之前创建的 `APIRouter`。
    
    它看起来和常规 FastAPI *路径操作*差不多:
    
    * 声明要接收的请求体,例如,`body: InvoiceEvent`
    * 还要声明要返回的响应,例如,`response_model=InvoiceEventReceived`
    
    ```Python hl_lines="17-19  22-23  29-33"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    回调*路径操作*与常规*路径操作*有两点主要区别:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 22:46:28 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. docs/pt/docs/tutorial/handling-errors.md

    **FastAPI** faz uso dele para que você veja o erro no seu log, caso você utilize um modelo de Pydantic em `response_model`, e seus dados tenham erro.
    
    Contudo, o cliente ou usuário não terão acesso a ele. Ao contrário, o cliente receberá um "Internal Server Error" com o HTTP status code `500`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10K bytes
    - Viewed (0)
  9. docs/fr/docs/advanced/path-operation-advanced-configuration.md

    ```Python hl_lines="19-29"
    {!../../../docs_src/path_operation_advanced_configuration/tutorial004.py!}
    ```
    
    ## Réponses supplémentaires
    
    Vous avez probablement vu comment déclarer le `response_model` et le `status_code` pour une *opération de chemin*.
    
    Cela définit les métadonnées sur la réponse principale d'une *opération de chemin*.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8K bytes
    - Viewed (0)
  10. docs/zh/docs/advanced/async-sql-databases.md

    创建读取笔记的*路径操作函数*:
    
    ```Python hl_lines="55-58"
    {!../../../docs_src/async_sql_databases/tutorial001.py!}
    ```
    
    !!! Note "笔记"
    
        注意,本例与数据库通信时使用 `await`,因此*路径操作函数*要声明为异步函数(`asnyc`)。
    
    ### 注意 `response_model=List[Note]`
    
    `response_model=List[Note]` 使用的是 `typing.List`。
    
    它以笔记(`Note`)列表的形式存档(及验证、序列化、筛选)输出的数据。
    
    ## 创建笔记
    
    创建新建笔记的*路径操作函数*:
    
    ```Python hl_lines="61-65"
    Plain Text
    - Registered: Sun Mar 31 07:19:09 GMT 2024
    - Last Modified: Sat Mar 30 22:44:40 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top