- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 82 for full_name (0.24 sec)
-
tests/test_read_with_orm_mode.py
lastname: str class Person(PersonBase): @property 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()
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2.4K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003.py
"username": "foo", "password": "fighter", "email": "******@****.***", "full_name": "Grave Dohl", }, ) assert response.status_code == 200, response.text assert response.json() == { "username": "foo", "email": "******@****.***", "full_name": "Grave Dohl", } def test_openapi_schema(): response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.6K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py39.py
from pydantic import BaseModel fake_users_db = { "johndoe": { "username": "johndoe", "full_name": "John Doe", "email": "******@****.***", "hashed_password": "fakehashedsecret", "disabled": False, }, "alice": { "username": "alice", "full_name": "Alice Wonderson", "email": "******@****.***", "hashed_password": "fakehashedsecret2",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_01.py
"username": "foo", "password": "fighter", "email": "******@****.***", "full_name": "Grave Dohl", }, ) assert response.status_code == 200, response.text assert response.json() == { "username": "foo", "email": "******@****.***", "full_name": "Grave Dohl", } def test_openapi_schema(): response = client.get("/openapi.json")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/extra-models.md
```Python UserInDB( username="john", password="secret", email="******@****.***", full_name=None, ) ``` 或更精准,直接把可能会用到的内容与 `user_dict` 一起使用: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], ) ``` #### 用其它模型中的内容生成 Pydantic 模型
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Apr 01 01:15:53 GMT 2024 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_py310.py
"username": "foo", "password": "fighter", "email": "******@****.***", "full_name": "Grave Dohl", }, ) assert response.status_code == 200, response.text assert response.json() == { "username": "foo", "email": "******@****.***", "full_name": "Grave Dohl", } @needs_py310 def test_openapi_schema(client: TestClient):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.8K bytes - Viewed (0) -
tests/test_tutorial/test_response_model/test_tutorial003_01_py310.py
"username": "foo", "password": "fighter", "email": "******@****.***", "full_name": "Grave Dohl", }, ) assert response.status_code == 200, response.text assert response.json() == { "username": "foo", "email": "******@****.***", "full_name": "Grave Dohl", } @needs_py310 def test_openapi_schema(client: TestClient):
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 5.8K bytes - Viewed (0) -
docs/de/docs/tutorial/extra-models.md
password="secret", email="******@****.***", full_name=None, ) ``` Oder, präziser, `user_dict` wird direkt verwendet, welche Werte es auch immer haben mag: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], ) ```
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) -
docs/ja/docs/tutorial/extra-models.md
UserInDB( username="john", password="secret", email="******@****.***", full_name=None, ) ``` もっと正確に言えば、`user_dict`を将来的にどんな内容であっても直接使用することになります: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], ) ``` #### 別のモデルからつくるPydanticモデル
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 15 15:36:32 GMT 2024 - 6.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/extra-models.md
email="******@****.***", full_name=None, ) ``` Или, если для большей точности мы напрямую используем `user_dict` с любым потенциальным содержимым, то этот пример будет выглядеть так: ```Python UserInDB( username = user_dict["username"], password = user_dict["password"], email = user_dict["email"], full_name = user_dict["full_name"], ) ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.6K bytes - Viewed (0)