- Sort Score
- Result 10 results
- Languages All
Results 1571 - 1580 of 1,989 for py$ (0.02 sec)
-
docs/en/docs/tutorial/handling-errors.md
## Use `HTTPException` To return HTTP responses with errors to the client you use `HTTPException`. ### Import `HTTPException` ```Python hl_lines="1" {!../../docs_src/handling_errors/tutorial001.py!} ``` ### Raise an `HTTPException` in your code `HTTPException` is a normal Python exception with additional data relevant for APIs. Because it's a Python exception, you don't `return` it, you `raise` it.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.1K bytes - Viewed (0) -
docs/em/docs/python-types.md
//// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python {!> ../../docs_src/python_types/tutorial011.py!} ``` //// //// tab | 🐍 3️⃣.9️⃣ & 🔛 ```Python {!> ../../docs_src/python_types/tutorial011_py39.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python {!> ../../docs_src/python_types/tutorial011_py310.py!} ``` //// /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.4K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-nested-models.md
```Python hl_lines="12" {!../../docs_src/body_nested_models/tutorial001.py!} ``` これにより、各項目の型は宣言されていませんが、`tags`はある項目のリストになります。 ## タイプパラメータを持つリストのフィールド しかし、Pythonには型や「タイプパラメータ」を使ってリストを宣言する方法があります: ### typingの`List`をインポート まず、Pythonの標準の`typing`モジュールから`List`をインポートします: ```Python hl_lines="1" {!../../docs_src/body_nested_models/tutorial002.py!} ``` ### タイプパラメータを持つ`List`の宣言
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/pt/docs/advanced/events.md
Vamos iniciar com um exemplo e ver isso detalhadamente. Nós criamos uma função assíncrona chamada `lifespan()` com `yield` como este: ```Python hl_lines="16 19" {!../../docs_src/events/tutorial003.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.6K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
Let's start with an example and then see it in detail. We create an async function `lifespan()` with `yield` like this: {* ../../docs_src/events/tutorial003.py hl[16,19] *}
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Oct 28 10:36:22 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/body.md
```Python hl_lines="4" {!../../docs_src/body/tutorial001.py!} ``` ## Создание вашей собственной модели После этого вы описываете вашу модель данных как класс, наследующий от `BaseModel`. Используйте аннотации типов Python для всех атрибутов: ```Python hl_lines="7-11" {!../../docs_src/body/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params-numeric-validations.md
まず初めに、`fastapi`から`Path`をインポートします: ```Python hl_lines="1" {!../../docs_src/path_params_numeric_validations/tutorial001.py!} ``` ## メタデータの宣言 パラメータは`Query`と同じものを宣言することができます。 例えば、パスパラメータ`item_id`に対して`title`のメタデータを宣言するには以下のようにします: ```Python hl_lines="8" {!../../docs_src/path_params_numeric_validations/tutorial001.py!} ``` /// note | "備考" パスの一部でなければならないので、パスパラメータは常に必須です。 そのため、`...`を使用して必須と示す必要があります。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/schema-extra-example.md
```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="22-27" {!> ../../docs_src/schema_extra_example/tutorial003_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="23-28" {!> ../../docs_src/schema_extra_example/tutorial003_an.py!} ``` //// //// tab | Python 3.10+ non-Annotated
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/query-params.md
🎏 🌌, 👆 💪 📣 📦 🔢 🔢, ⚒ 👫 🔢 `None`: //// tab | 🐍 3️⃣.6️⃣ & 🔛 ```Python hl_lines="9" {!> ../../docs_src/query_params/tutorial002.py!} ``` //// //// tab | 🐍 3️⃣.1️⃣0️⃣ & 🔛 ```Python hl_lines="7" {!> ../../docs_src/query_params/tutorial002_py310.py!} ``` //// 👉 💼, 🔢 🔢 `q` 🔜 📦, & 🔜 `None` 🔢. /// check
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.4K bytes - Viewed (0) -
docs/tr/docs/tutorial/query-params.md
//// tab | Python 3.10+ ```Python hl_lines="7" {!> ../../docs_src/query_params/tutorial002_py310.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="9" {!> ../../docs_src/query_params/tutorial002.py!} ``` //// Bu durumda, `q` fonksiyon parametresi isteğe bağlı olacak ve varsayılan değer olarak `None` alacaktır. /// check | "Ek bilgi"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.9K bytes - Viewed (0)