- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for sherry (0.21 sec)
-
tests/test_compat.py
# For coverage # TODO: in theory this would allow declaring types that could be lists of bytes # to be read from files and other types, but I'm not even sure it's a good idea # to support it as a first class "feature" assert is_bytes_sequence_annotation(Union[List[str], List[bytes]]) def test_is_uploadfile_sequence_annotation(): # For coverage
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 2.8K bytes - Viewed (0) -
docs/en/docs/advanced/dataclasses.md
As always, in FastAPI you can combine `def` and `async def` as needed. If you need a refresher about when to use which, check out the section _"In a hurry?"_ in the docs about [`async` and `await`](../async.md#in-a-hurry){.internal-link target=_blank}. 9. This *path operation function* is not returning dataclasses (although it could), but a list of dictionaries with internal data.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/first-steps.md
--- 你也可以将其定义为常规函数而不使用 `async def`: ```Python hl_lines="7" {!../../../docs_src/first_steps/tutorial003.py!} ``` !!! note 如果你不知道两者的区别,请查阅 [Async: *"In a hurry?"*](https://fastapi.tiangolo.com/async/#in-a-hurry){.internal-link target=_blank}。 ### 步骤 5:返回内容 ```Python hl_lines="8" {!../../../docs_src/first_steps/tutorial001.py!} ``` 你可以返回一个 `dict`、`list`,像 `str`、`int` 一样的单个值,等等。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 12 00:06:16 GMT 2022 - 9.2K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/index.md
また、通常の`def`*path operation関数*の中に`async def`を入れて依存関係を宣言したり、`async def`*path operation関数*の中に`def`を入れて依存関係を宣言したりすることなどができます。 それは重要ではありません。**FastAPI** は何をすべきかを知っています。 !!! note "備考" わからない場合は、ドキュメントの[Async: *"In a hurry?"*](../../async.md){.internal-link target=_blank}の中の`async`と`await`についてのセクションを確認してください。 ## OpenAPIとの統合 依存関係(およびサブ依存関係)のすべてのリクエスト宣言、検証、および要件は、同じOpenAPIスキーマに統合されます。 つまり、対話型ドキュメントにはこれらの依存関係から得られる全ての情報も含まれているということです:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Jan 15 16:08:16 GMT 2024 - 9.7K bytes - Viewed (0) -
docs_src/metadata/tutorial004.py
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jun 13 11:58:06 GMT 2020 - 693 bytes - Viewed (0) -
docs/em/docs/advanced/dataclasses.md
8️⃣. 👀 👈 👉 *➡ 🛠️ 🔢* ⚙️ 🥔 `def` ↩️ `async def`. 🕧, FastAPI 👆 💪 🌀 `def` & `async def` 💪. 🚥 👆 💪 ↗️ 🔃 🕐❔ ⚙️ ❔, ✅ 👅 📄 _"🏃 ❓" _ 🩺 🔃 <a href="https://fastapi.tiangolo.com/async/#in-a-hurry" target="_blank" class="internal-link">`async` & `await`</a>. 9️⃣. 👉 *➡ 🛠️ 🔢* 🚫 🛬 🎻 (👐 ⚫️ 💪), ✋️ 📇 📖 ⏮️ 🔗 💽. FastAPI 🔜 ⚙️ `response_model` 🔢 (👈 🔌 🎻) 🗜 📨.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 3.5K bytes - Viewed (0) -
docs/zh/docs/advanced/dataclasses.md
再一次,可以把 `dataclasses` 与标准类型注解一起使用; 8. 注意,*路径操作函数*使用的是普通函数,不是异步函数; 与往常一样,在 FastAPI 中,可以按需组合普通函数与异步函数; 如果不清楚何时使用异步函数或普通函数,请参阅**急不可待?**一节中对 <a href="https://fastapi.tiangolo.com/async/#in-a-hurry" target="_blank" class="internal-link">`async` 与 `await`</a> 的说明; 9. *路径操作函数*返回的不是数据类(虽然它可以返回数据类),而是返回内含数据的字典列表; FastAPI 使用(包含数据类的) `response_model` 参数转换响应。 把 `dataclasses` 与其它类型注解组合在一起,可以组成不同形式的复杂数据结构。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 22:44:14 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/index.md
**FastAPI** provides several tools to help you deal with **Security** easily, rapidly, in a standard way, without having to study and learn all the security specifications. But first, let's check some small concepts. ## In a hurry? If you don't care about any of these terms and you just need to add security with authentication based on username and password *right now*, skip to the next chapters. ## OAuth2
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jun 24 14:47:15 GMT 2023 - 4.3K bytes - Viewed (0)