- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 478 for dica (0.03 sec)
-
docs/ru/docs/tutorial/extra-models.md
#### Pydantic-модель из содержимого другой модели Как в примере выше мы получили `user_dict` из `user_in.dict()`, этот код: ```Python user_dict = user_in.dict() UserInDB(**user_dict) ``` будет равнозначен такому: ```Python UserInDB(**user_in.dict()) ``` ...потому что `user_in.dict()` - это `dict`, и затем мы указываем, чтобы Python его "распаковал", когда передаём его в `UserInDB` и ставим перед ним `**`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.5K bytes - Viewed (0) -
docs/em/docs/tutorial/encoder.md
👆 💪 ⚙️ `jsonable_encoder` 👈. ⚫️ 📨 🎚, 💖 Pydantic 🏷, & 📨 🎻 🔗 ⏬: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// 👉 🖼, ⚫️ 🔜 🗜 Pydantic 🏷 `dict`, & `datetime` `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.5K bytes - Viewed (0) -
cmd/data-usage_test.go
{name: "dir2/d2file5", size: 300}, {name: "dir1/dira/dafile", size: 100000}, {name: "dir1/dira/dbfile", size: 200000}, {name: "dir1/dira/dirasub/dcfile", size: 1000000}, {name: "dir1/dira/dirasub/sublevel3/dccccfile", size: 10}, {name: "dir1/dira/dirasub/sublevel3/dccccfile20", size: 20}, {name: "dir1/dira/dirasub/sublevel3/dccccfile30", size: 30}, {name: "dir1/dira/dirasub/sublevel3/dccccfile40", size: 40}, }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 04 22:23:33 UTC 2024 - 14.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiCreator.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.dict.kuromoji; import java.util.Date; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.fess.dict.DictionaryCreator; import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.fess.dict.DictionaryItem; import jakarta.annotation.PostConstruct;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingCreator.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.dict.mapping; import java.util.Date; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.fess.dict.DictionaryCreator; import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.fess.dict.DictionaryItem; import jakarta.annotation.PostConstruct;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideCreator.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.dict.stemmeroverride; import java.util.Date; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.codelibs.fess.dict.DictionaryCreator; import org.codelibs.fess.dict.DictionaryFile; import org.codelibs.fess.dict.DictionaryItem; import jakarta.annotation.PostConstruct;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.6K bytes - Viewed (0) -
pdm_build.py
import os from typing import Any, Dict from pdm.backend.hooks import Context TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "fastapi") def pdm_build_initialize(context: Context) -> None: metadata = context.config.metadata # Get custom config for the current package, from the env var config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][ "_internal-slim-build"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Aug 02 06:03:05 UTC 2024 - 697 bytes - Viewed (0) -
docs/en/docs/tutorial/encoder.md
The same way, this database wouldn't receive a Pydantic model (an object with attributes), only a `dict`. You can use `jsonable_encoder` for that. It receives an object, like a Pydantic model, and returns a JSON compatible version: {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *} In this example, it would convert the Pydantic model to a `dict`, and the `datetime` to a `str`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 23:31:16 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/ru/docs/python-types.md
#### `Dict` Чтобы определить `dict`, вы передаёте 2 параметра типов, разделённых запятыми. Первый параметр типа предназначен для ключей `dict`. Второй параметр типа предназначен для значений `dict`: ```Python hl_lines="1 4" {!../../docs_src/python_types/tutorial008.py!} ``` Это означает: * Переменная `prices` является `dict`:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 14.6K bytes - Viewed (0) -
docs/pt/docs/tutorial/encoder.md
# Codificador Compatível com JSON Existem alguns casos em que você pode precisar converter um tipo de dados (como um modelo Pydantic) para algo compatível com JSON (como um `dict`, `list`, etc). Por exemplo, se você precisar armazená-lo em um banco de dados. Para isso, **FastAPI** fornece uma função `jsonable_encoder()`. ## Usando a função `jsonable_encoder`
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.9K bytes - Viewed (0)