Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 90 for Models (0.17 sec)

  1. fastapi/_compat.py

        def _model_rebuild(model: Type[BaseModel]) -> None:
            model.model_rebuild()
    
        def _model_dump(
            model: BaseModel, mode: Literal["json", "python"] = "json", **kwargs: Any
        ) -> Any:
            return model.model_dump(mode=mode, **kwargs)
    
        def _get_model_config(model: BaseModel) -> Any:
            return model.model_config
    
        def get_schema_from_model_field(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. docs/en/data/external_links.yml

      - author: Kaustubh Gupta
        author_link: https://medium.com/@kaustubhgupta1828/
        link: https://www.analyticsvidhya.com/blog/2021/06/deploying-ml-models-as-api-using-fastapi-and-heroku/
        title: Deploying ML Models as API Using FastAPI and Heroku
      - link: https://jarmos.netlify.app/posts/using-github-actions-to-deploy-a-fastapi-project-to-heroku/
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 21 20:57:27 GMT 2024
    - 21.3K bytes
    - Viewed (2)
  3. docs/en/docs/tutorial/response-model.md

    `response_model` receives the same type you would declare for a Pydantic model field, so, it can be a Pydantic model, but it can also be, e.g. a `list` of Pydantic models, like `List[Item]`.
    
    FastAPI will use this `response_model` to do all the data documentation, validation, etc. and also to **convert and filter the output data** to its type declaration.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/generate-clients.md

    You can see those schemas because they were declared with the models in the app.
    
    That information is available in the app's **OpenAPI schema**, and then shown in the API docs (by Swagger UI).
    
    And that same information from the models that is included in OpenAPI is what can be used to **generate the client code**.
    
    ### Generate a TypeScript Client
    
    Now that we have the app with the models, we can generate the client code for the frontend.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. fastapi/openapi/utils.py

                if route.callbacks:
                    callback_flat_models.extend(get_fields_from_routes(route.callbacks))
                params = get_flat_params(route.dependant)
                request_fields_from_routes.extend(params)
    
        flat_models = callback_flat_models + list(
            body_fields_from_routes + responses_from_routes + request_fields_from_routes
        )
        return flat_models
    
    
    def get_openapi(
        *,
        title: str,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/sql-databases.md

    ```Python hl_lines="1  10-13  21-24"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ### โœ ๐Ÿ’›
    
    ๐Ÿ”œ โœ ๐Ÿ’›.
    
    ๐Ÿ‘‰, ๐Ÿ‘ฅ โš™๏ธ `relationship` ๐Ÿšš ๐Ÿ‡ธ๐Ÿ‡ฒ ๐Ÿœ.
    
    ๐Ÿ‘‰ ๐Ÿ”œ โ–ถ๏ธ๏ธ, ๐ŸŒ… โš–๏ธ ๐ŸŒ˜, "๐ŸŽฑ" ๐Ÿ”ข ๐Ÿ‘ˆ ๐Ÿ”œ ๐Ÿ”Œ ๐Ÿ’ฒ โšช๏ธโžก๏ธ ๐ŸŽ ๐Ÿ“ ๐Ÿ”— ๐Ÿ‘‰ 1๏ธโƒฃ.
    
    ```Python hl_lines="2  15  26"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 25.2K bytes
    - Viewed (1)
  7. docs/zh/docs/tutorial/sql-databases.md

    ```Python hl_lines="1  10-13  21-24"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ### ๅˆ›ๅปบๅ…ณ็ณป
    
    ็Žฐๅœจๅˆ›ๅปบๅ…ณ็ณปใ€‚
    
    ไธบๆญค๏ผŒๆˆ‘ไปฌไฝฟ็”จSQLAlchemy  ORMๆไพ›็š„`relationship`ใ€‚
    
    ่ฟ™ๅฐ†ๆˆ–ๅคšๆˆ–ๅฐ‘ไผšๆˆไธบไธ€็งโ€œ็ฅžๅฅ‡โ€ๅฑžๆ€ง๏ผŒๅ…ถไธญ่กจ็คบ่ฏฅ่กจไธŽๅ…ถไป–็›ธๅ…ณ็š„่กจไธญ็š„ๅ€ผใ€‚
    
    ```Python hl_lines="2  15  26"
    {!../../../docs_src/sql_databases/sql_app/models.py!}
    ```
    
    ๅฝ“่ฎฟ้—ฎ user ไธญ็š„ๅฑžๆ€ง`items`ๆ—ถ๏ผŒๅฆ‚ ไธญ`my_user.items`๏ผŒๅฎƒๅฐ†ๆœ‰ไธ€ไธช`Item`SQLAlchemy ๆจกๅž‹ๅˆ—่กจ๏ผˆๆฅ่‡ช`items`่กจ๏ผ‰๏ผŒ่ฟ™ไบ›ๆจกๅž‹ๅ…ทๆœ‰ๆŒ‡ๅ‘`users`่กจไธญๆญค่ฎฐๅฝ•็š„ๅค–้”ฎใ€‚
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27K bytes
    - Viewed (0)
  8. docs/em/docs/how-to/sql-databases-peewee.md

    ๐Ÿ†–, ๐Ÿ•โ” ๐Ÿ›ฌ ๐Ÿ“š ๐ŸŽš, ๐Ÿ’– `get_users`, ๐Ÿ‘ฅ ๐Ÿ”— ๐Ÿค™ `list`, ๐Ÿ’–:
    
    ```Python
    list(models.User.select())
    ```
    
    ๐Ÿ‘‰ ๐ŸŽ ๐Ÿค” ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ โœ ๐Ÿ›ƒ `PeeweeGetterDict`. โœ‹๏ธ ๐Ÿ›ฌ ๐Ÿ•ณ ๐Ÿ‘ˆ โช `list` โ†ฉ๏ธ `peewee.ModelSelect` `response_model` *โžก ๐Ÿ› ๏ธ* โฎ๏ธ `List[models.User]` (๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ”œ ๐Ÿ‘€ โช) ๐Ÿ”œ ๐Ÿ‘ท โ˜‘.
    
    ## ๐Ÿ‘‘ **FastAPI** ๐Ÿ“ฑ
    
    & ๐Ÿ”œ ๐Ÿ“ `sql_app/main.py` โžก๏ธ ๐Ÿ› ๏ธ & โš™๏ธ ๐ŸŒ ๐ŸŽ ๐Ÿ• ๐Ÿ‘ฅ โœ โญ.
    
    ### โœ ๐Ÿ’ฝ ๐Ÿ“
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 19.2K bytes
    - Viewed (0)
  9. maven-core/pom.xml

                  <goal>xdoc</goal>
                </goals>
                <phase>pre-site</phase>
                <configuration>
                  <version>1.0.0</version>
                  <models>
                    <model>src/main/mdo/extension.mdo</model>
                  </models>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
    XML
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 08:48:58 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  10. 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_indict){.internal-link target=_blank}.
    
    ## Return the token
    
    The response of the `token` endpoint must be a JSON object.
    
    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)
Back to top