- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Raines (0.19 sec)
-
docs/ru/docs/tutorial/encoder.md
Она принимает объект, например, модель Pydantic, и возвращает его версию, совместимую с JSON: === "Python 3.10+" ```Python hl_lines="4 21" {!> ../../../docs_src/encoder/tutorial001_py310.py!} ``` === "Python 3.6+" ```Python hl_lines="5 22" {!> ../../../docs_src/encoder/tutorial001.py!} ``` В данном примере она преобразует Pydantic модель в `dict`, а `datetime` - в `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Jan 23 13:56:12 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/uk/docs/tutorial/encoder.md
Вона приймає об'єкт, такий як Pydantic model, і повертає його версію, сумісну з JSON: === "Python 3.10+" ```Python hl_lines="4 21" {!> ../../../docs_src/encoder/tutorial001_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="5 22" {!> ../../../docs_src/encoder/tutorial001.py!} ``` У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.6K bytes - Viewed (0) -
docs/de/docs/tutorial/encoder.md
Es nimmt ein Objekt entgegen, wie etwa ein Pydantic-Modell, und gibt eine JSON-kompatible Version zurück: === "Python 3.10+" ```Python hl_lines="4 21" {!> ../../../docs_src/encoder/tutorial001_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="5 22" {!> ../../../docs_src/encoder/tutorial001.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:07:21 GMT 2024 - 1.9K bytes - Viewed (0) -
docs/ko/docs/tutorial/encoder.md
같은 방식으로 이 데이터베이스는 Pydantic 모델(속성이 있는 객체)을 받지 않고, `dict` 만을 받습니다. 이를 위해 `jsonable_encoder` 를 사용할 수 있습니다. Pydantic 모델과 같은 객체를 받고 JSON 호환 가능한 버전으로 반환합니다: ```Python hl_lines="5 22" {!../../../docs_src/encoder/tutorial001.py!} ``` 이 예시는 Pydantic 모델을 `dict`로, `datetime` 형식을 `str`로 변환합니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Dec 08 15:43:31 GMT 2021 - 1.9K bytes - Viewed (0)