- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 94 for attributes (0.23 sec)
-
docs/en/docs/tutorial/sql-databases.md
```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` The `__tablename__` attribute tells SQLAlchemy the name of the table to use in the database for each of these models. ### Create model attributes/columns Now create all the model (class) attributes. Each of these attributes represents a column in its corresponding database table. We use `Column` from SQLAlchemy as the default value.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0) -
.github/DISCUSSION_TEMPLATE/questions.yml
required: true - type: dropdown id: os attributes: label: Operating System description: What operating system are you on? multiple: true options: - Linux - Windows - macOS - Other validations: required: true - type: textarea id: os-details attributes: label: Operating System Details
Others - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Aug 03 15:59:41 GMT 2023 - 5.8K bytes - Viewed (1) -
docs/en/docs/tutorial/body-updates.md
!!! note Notice that the input model is still validated. So, if you want to receive partial updates that can omit all the attributes, you need to have a model with all the attributes marked as optional (with default values or `None`).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.6K bytes - Viewed (0) -
tests/test_read_with_orm_mode.py
def full_name(self) -> str: return f"{self.name} {self.lastname}" model_config = ConfigDict(from_attributes=True) class PersonCreate(PersonBase): pass class PersonRead(PersonBase): full_name: str model_config = {"from_attributes": True} app = FastAPI() @app.post("/people/", response_model=PersonRead)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2.4K bytes - Viewed (0) -
docs/en/docs/js/termynal.js
div.innerHTML = `<span ${this._attributes(line)}>${line.value || ''}</span>`; return div.firstElementChild; }); } /** * Helper function for generating attributes string. * * @param {Object} line - Line data object. * @returns {string} - String of attributes. */ _attributes(line) { let attrs = '';
JavaScript - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 9.3K bytes - Viewed (0) -
docs/en/docs/tutorial/body.md
Use standard Python types for all the attributes: === "Python 3.10+" ```Python hl_lines="5-9" {!> ../../../docs_src/body/tutorial001_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="7-11" {!> ../../../docs_src/body/tutorial001.py!} ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.3K bytes - Viewed (0) -
.github/ISSUE_TEMPLATE/privileged.yml
body: - type: markdown attributes: value: | Thanks for your interest in FastAPI! 🚀 If you are not @tiangolo or he didn't ask you directly to create an issue here, please start the conversation in a [Question in GitHub Discussions](https://github.com/tiangolo/fastapi/discussions/categories/questions) instead. - type: checkboxes id: privileged attributes: label: Privileged issue
Others - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Jan 31 14:02:52 GMT 2023 - 889 bytes - Viewed (0) -
docs/en/docs/reference/apirouter.md
# `APIRouter` class Here's the reference information for the `APIRouter` class, with all its parameters, attributes and methods. You can import the `APIRouter` class directly from `fastapi`: ```python from fastapi import APIRouter ``` ::: fastapi.APIRouter options: members: - websocket - include_router - get - put - post - delete
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 524 bytes - Viewed (0) -
docs/en/docs/tutorial/body-fields.md
``` !!! warning Notice that `Field` is imported directly from `pydantic`, not from `fastapi` as are all the rest (`Query`, `Path`, `Body`, etc). ## Declare model attributes You can then use `Field` with model attributes: === "Python 3.10+" ```Python hl_lines="11-14" {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!} ``` === "Python 3.9+" ```Python hl_lines="11-14"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 3.6K bytes - Viewed (0) -
docs/en/docs/reference/fastapi.md
# `FastAPI` class Here's the reference information for the `FastAPI` class, with all its parameters, attributes and methods. You can import the `FastAPI` class directly from `fastapi`: ```python from fastapi import FastAPI ``` ::: fastapi.FastAPI options: members: - openapi_version - webhooks - state - dependency_overrides - openapi
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 701 bytes - Viewed (0)