- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for 47 (0.13 sec)
-
docs/en/docs/advanced/testing-database.md
## Test the app Then we can just test the app as normally. ```Python hl_lines="32-47" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.5K bytes - Viewed (0) -
docs/de/docs/advanced/websockets.md
```Python hl_lines="2 6-38 41-43" {!../../../docs_src/websockets/tutorial001.py!} ``` ## Einen `websocket` erstellen Erstellen Sie in Ihrer **FastAPI**-Anwendung einen `websocket`: ```Python hl_lines="1 46-47" {!../../../docs_src/websockets/tutorial001.py!} ``` !!! note "Technische Details" Sie können auch `from starlette.websockets import WebSocket` verwenden.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:17:58 GMT 2024 - 6.9K bytes - Viewed (0) -
docs/ru/docs/tutorial/schema-extra-example.md
``` === "Python 3.8+ non-Annotated" !!! tip Заметка Рекомендуется использовать версию с `Annotated`, если это возможно. ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial004.py!} ``` ### Аргумент "examples" в UI документации С аргументом `examples`, добавленным в `Body()`, страница документации `/docs` будет выглядеть так:
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) -
docs/zh/docs/advanced/testing-database.md
``` !!! tip "提示" `overrider_get_db()` 与 `get_db` 的代码几乎完全一样,只是 `overrider_get_db` 中使用测试数据库的 `TestingSessionLocal`。 ## 测试应用 然后,就可以正常测试了。 ```Python hl_lines="32-47" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Jan 28 18:09:26 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/zh/docs/tutorial/sql-databases.md
而 Pydantic 也使用“模型”这个术语 来指代不同的东西,即数据验证、转换以及文档类和实例。 从`database`(来自上面的`database.py`文件)导入`Base`。 创建从它继承的类。 这些类就是 SQLAlchemy 模型。 ```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` 这个`__tablename__`属性是用来告诉 SQLAlchemy 要在数据库中为每个模型使用的数据库表的名称。 ### 创建模型属性/列 现在创建所有模型(类)属性。 这些属性中的每一个都代表其相应数据库表中的一列。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 27K bytes - Viewed (0) -
docs/en/docs/advanced/websockets.md
```Python hl_lines="2 6-38 41-43" {!../../../docs_src/websockets/tutorial001.py!} ``` ## Create a `websocket` In your **FastAPI** application, create a `websocket`: ```Python hl_lines="1 46-47" {!../../../docs_src/websockets/tutorial001.py!} ``` !!! note "Technical Details" You could also use `from starlette.websockets import WebSocket`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/zh/docs/advanced/websockets.md
```Python hl_lines="2 6-38 41-43" {!../../../docs_src/websockets/tutorial001.py!} ``` ## 创建 `websocket` 在您的 **FastAPI** 应用程序中,创建一个 `websocket`: ```Python hl_lines="1 46-47" {!../../../docs_src/websockets/tutorial001.py!} ``` !!! note "技术细节" 您也可以使用 `from starlette.websockets import WebSocket`。 **FastAPI** 直接提供了相同的 `WebSocket`,只是为了方便开发人员。但它直接来自 Starlette。 ## 等待消息并发送消息
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Oct 17 05:59:11 GMT 2023 - 6K bytes - Viewed (0) -
docs/em/docs/tutorial/schema-extra-example.md
* `description`: 📏 📛 👈 💪 🔌 ✍ ✍. * `value`: 👉 ☑ 🖼 🎦, ✅ `dict`. * `externalValue`: 🎛 `value`, 📛 ☝ 🖼. 👐 👉 5️⃣📆 🚫 🐕🦺 📚 🧰 `value`. === "🐍 3️⃣.6️⃣ & 🔛" ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial004.py!} ``` === "🐍 3️⃣.1️⃣0️⃣ & 🔛" ```Python hl_lines="19-45" {!> ../../../docs_src/schema_extra_example/tutorial004_py310.py!}
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 5.5K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
✋️ Pydantic ⚙️ ⚖ "**🏷**" 🔗 🕳 🎏, 💽 🔬, 🛠️, & 🧾 🎓 & 👐. 🗄 `Base` ⚪️➡️ `database` (📁 `database.py` ⚪️➡️ 🔛). ✍ 🎓 👈 😖 ⚪️➡️ ⚫️. 👫 🎓 🇸🇲 🏷. ```Python hl_lines="4 7-8 18-19" {!../../../docs_src/sql_databases/sql_app/models.py!} ``` `__tablename__` 🔢 💬 🇸🇲 📛 🏓 ⚙️ 💽 🔠 👫 🏷. ### ✍ 🏷 🔢/🏓 🔜 ✍ 🌐 🏷 (🎓) 🔢. 🔠 👫 🔢 🎨 🏓 🚮 🔗 💽 🏓.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
docs/ko/docs/tutorial/schema-extra-example.md
{!> ../../../docs_src/schema_extra_example/tutorial005_py310.py!} ``` === "Python 3.8+ Annotated가 없는 경우" !!! tip "팁" 가능하다면 `Annotated`가 달린 버전을 권장합니다. ```Python hl_lines="21-47" {!> ../../../docs_src/schema_extra_example/tutorial005.py!} ``` ### 문서 UI에서의 OpenAPI 예시 `Body()`에 추가된 `openapi_examples`를 포함한 `/docs`는 다음과 같이 보일 것입니다:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Feb 09 12:35:46 GMT 2024 - 13.6K bytes - Viewed (0)