- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 193 for tutorial001_py39 (0.18 sec)
-
docs/uk/docs/tutorial/body.md
//// tab | Python 3.8 і вище ```Python hl_lines="4" {!> ../../docs_src/body/tutorial001.py!} ``` //// //// tab | Python 3.10 і вище ```Python hl_lines="2" {!> ../../docs_src/body/tutorial001_py310.py!} ``` //// ## Створіть свою модель даних Потім ви оголошуєте свою модель даних як клас, який успадковується від `BaseModel`. Використовуйте стандартні типи Python для всіх атрибутів:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
docs/em/docs/tutorial/dependencies/index.md
```Python hl_lines="8-11" {!> ../../docs_src/dependencies/tutorial001.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="6-7" {!> ../../docs_src/dependencies/tutorial001_py310.py!} ``` //// 👈 ⚫️. **2️⃣ ⏸**. & ⚫️ ✔️ 🎏 💠 & 📊 👈 🌐 👆 *➡ 🛠️ 🔢* ✔️. 👆 💪 💭 ⚫️ *➡ 🛠️ 🔢* 🍵 "👨🎨" (🍵 `@app.get("/some-path")`). & ⚫️ 💪 📨 🕳 👆 💚.
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.7K bytes - Viewed (0) -
docs/zh/docs/tutorial/encoder.md
同样,这个数据库也不会接收Pydantic模型(带有属性的对象),而只接收`dict`。 对此你可以使用`jsonable_encoder`。 它接收一个对象,比如Pydantic模型,并会返回一个JSON兼容的版本: //// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` //// 在这个例子中,它将Pydantic模型转换为`dict`,并将`datetime`转换为`str`。
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.7K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_tutorial002.py
# Clear the Models associated with the registry, to avoid warnings default_registry.dispose() @pytest.fixture( name="client", params=[ "tutorial002", pytest.param("tutorial002_py39", marks=needs_py39), pytest.param("tutorial002_py310", marks=needs_py310), "tutorial002_an", pytest.param("tutorial002_an_py39", marks=needs_py39),
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 19.9K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.body_multiple_params.tutorial001_py310 import app client = TestClient(app) return client @needs_py310 def test_post_body_q_bar_content(client: TestClient): response = client.put("/items/5?q=bar", json={"name": "Foo", "price": 50.5})
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/classes-as-dependencies.md
``` //// //// tab | Python 3.10+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="7" {!> ../../docs_src/dependencies/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="11"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 12K bytes - Viewed (0) -
docs/de/docs/advanced/websockets.md
//// tab | Python 3.9+ ```Python hl_lines="79-81" {!> ../../docs_src/websockets/tutorial003_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="81-83" {!> ../../docs_src/websockets/tutorial003.py!} ``` //// Zum Ausprobieren:
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.9K bytes - Viewed (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial001_py310.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310, needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from docs_src.schema_extra_example.tutorial001_py310 import app client = TestClient(app) return client @needs_py310 @needs_pydanticv2 def test_post_body_example(client: TestClient): response = client.put( "/items/5", json={
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 4.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/encoder.md
Она принимает объект, например, модель Pydantic, и возвращает его версию, совместимую с JSON: //// tab | Python 3.10+ ```Python hl_lines="4 21" {!> ../../docs_src/encoder/tutorial001_py310.py!} ``` //// //// tab | Python 3.6+ ```Python hl_lines="5 22" {!> ../../docs_src/encoder/tutorial001.py!} ``` ////
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/index.md
``` //// //// tab | Python 3.10+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="6-7" {!> ../../docs_src/dependencies/tutorial001_py310.py!} ``` //// //// tab | Python 3.8+ nicht annotiert /// tip | "Tipp" Bevorzugen Sie die `Annotated`-Version, falls möglich. /// ```Python hl_lines="8-11"
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13K bytes - Viewed (0)