- Sort Score
- Result 10 results
- Languages All
Results 401 - 410 of 411 for tutorial001_py310 (0.16 sec)
-
docs/zh/docs/tutorial/body-multiple-params.md
```JSON { "name": "Foo", "description": "The pretender", "price": 42.0, "tax": 3.2 } ``` 但是你也可以声明多个请求体参数,例如 `item` 和 `user`: {* ../../docs_src/body_multiple_params/tutorial002_py310.py hl[20] *} 在这种情况下,**FastAPI** 将注意到该函数中有多个请求体参数(两个 Pydantic 模型参数)。 因此,它将使用参数名称作为请求体中的键(字段名称),并期望一个类似于以下内容的请求体: ```JSON { "item": { "name": "Foo",Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/pt/docs/tutorial/cors.md
* Credenciais (Cabeçalhos de autorização, Cookies, etc). * Métodos HTTP específicos (`POST`, `PUT`) ou todos eles com o curinga `"*"`. * Cabeçalhos HTTP específicos ou todos eles com o curinga `"*"`. {* ../../docs_src/cors/tutorial001_py39.py hl[2,6:11,13:19] *}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 5.9K bytes - Viewed (0) -
docs/es/docs/tutorial/testing.md
Usa el objeto `TestClient` de la misma manera que con `httpx`. Escribe declaraciones `assert` simples con las expresiones estándar de Python que necesites revisar (otra vez, estándar de `pytest`). {* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip | Consejo Nota que las funciones de prueba son `def` normales, no `async def`. Y las llamadas al cliente también son llamadas normales, sin usar `await`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 6.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/testing.md
Используйте объект `TestClient` так же, как Вы используете `httpx`. Напишите простое утверждение с `assert` дабы проверить истинность Python-выражения (это тоже стандарт `pytest`). {* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip | Подсказка Обратите внимание, что тестирующая функция является обычной `def`, а не асинхронной `async def`. И вызов клиента также осуществляется без `await`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10K bytes - Viewed (0) -
docs/de/docs/tutorial/testing.md
Schreiben Sie einfache `assert`-Anweisungen mit den Standard-Python-Ausdrücken, die Sie überprüfen müssen (wiederum, Standard-`pytest`). {* ../../docs_src/app_testing/tutorial001_py39.py hl[2,12,15:18] *} /// tip | Tipp Beachten Sie, dass die Testfunktionen normal `def` und nicht `async def` sind. Und die Anrufe an den Client sind ebenfalls normale Anrufe, die nicht `await` verwenden.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7K bytes - Viewed (0) -
docs/zh/docs/python-types.md
每个属性都拥有类型。 接着你用一些值来创建这个类的实例,这些值会被校验,并被转换为适当的类型(在需要的情况下),返回一个包含所有数据的对象。 然后,你将获得这个对象的所有编辑器支持。 下面的例子来自 Pydantic 官方文档: //// tab | Python 3.10+ ```Python {!> ../../docs_src/python_types/tutorial011_py310.py!} ``` //// //// tab | Python 3.9+ ```Python {!> ../../docs_src/python_types/tutorial011_py39.py!} ``` //// //// tab | Python 3.8+ ```PythonRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Aug 18 06:34:40 UTC 2025 - 8.6K bytes - Viewed (0) -
docs/de/docs/advanced/behind-a-proxy.md
In diesem Fall würde der ursprüngliche Pfad `/app` tatsächlich unter `/api/v1/app` bereitgestellt. Auch wenn Ihr gesamter Code unter der Annahme geschrieben ist, dass es nur `/app` gibt. {* ../../docs_src/behind_a_proxy/tutorial001_py39.py hl[6] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.6K bytes - Viewed (0) -
docs/ko/docs/tutorial/security/simple-oauth2.md
따라서 해커는 다른 시스템에서 동일한 암호를 사용하려고 시도할 수 없습니다(많은 사용자가 모든 곳에서 동일한 암호를 사용하므로 이는 위험할 수 있습니다). //// tab | 파이썬 3.7 이상 {* ../../docs_src/security/tutorial003.py hl[80:83] *} //// {* ../../docs_src/security/tutorial003_py310.py hl[78:81] *} #### `**user_dict`에 대해 `UserInDB(**user_dict)`는 다음을 의미한다: *`user_dict`의 키와 값을 다음과 같은 키-값 인수로 직접 전달합니다:* ```Python UserInDB( username = user_dict["username"],Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 11:19:12 UTC 2025 - 10.8K bytes - Viewed (0) -
docs/ru/docs/advanced/custom-response.md
/// /// warning | Предупреждение `ujson` менее аккуратен, чем встроенная реализация Python, в обработке некоторых крайних случаев. /// {* ../../docs_src/custom_response/tutorial001_py39.py hl[2,7] *} /// tip | Совет Возможно, `ORJSONResponse` окажется более быстрым вариантом. /// ### `RedirectResponse` { #redirectresponse }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 19.7K bytes - Viewed (0) -
docs/zh/docs/advanced/generate-clients.md
如果您正在开发**前端**,一个非常有趣的替代方案是 <a href="https://github.com/hey-api/openapi-ts" class="external-link" target="_blank">openapi-ts</a>。 ## 生成一个 TypeScript 前端客户端 让我们从一个简单的 FastAPI 应用开始: {* ../../docs_src/generate_clients/tutorial001_py39.py hl[7:9,12:13,16:17,21] *} 请注意,*路径操作* 定义了他们所用于请求数据和回应数据的模型,所使用的模型是`Item` 和 `ResponseMessage`。 ### API 文档 如果您访问API文档,您将看到它具有在请求中发送和在响应中接收数据的**模式(schemas)**:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.5K bytes - Viewed (0)