- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 90 for Models (0.17 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
maven-core/pom.xml
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) -
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)