- Sort Score
- Num 10 results
- Language All
Results 411 - 420 of 510 for tutorial002_an_py310 (0.14 seconds)
-
docs/zh-hant/docs/tutorial/security/first-steps.md
但不必通讀整份冗長規格只為了找出你需要的幾個重點。 就用 FastAPI 提供的工具處理安全性。 ## 看起來如何 { #how-it-looks } 先直接跑範例看效果,再回頭理解其原理。 ## 建立 `main.py` { #create-main-py } 將範例複製到檔案 `main.py`: {* ../../docs_src/security/tutorial001_an_py310.py *} ## 執行 { #run-it } /// info 當你使用 `pip install "fastapi[standard]"` 指令安裝時,[`python-multipart`](https://github.com/Kludex/python-multipart) 套件會隨 FastAPI 自動安裝。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 7.2K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/first-steps.md
但为了节省你的时间,不必为获取少量信息而通读冗长的规范。 我们直接使用 **FastAPI** 提供的安全工具。 ## 效果预览 { #how-it-looks } 先直接运行代码看看效果,之后再回过头理解其背后的原理。 ## 创建 `main.py` { #create-main-py } 把下面的示例代码复制到 `main.py`: {* ../../docs_src/security/tutorial001_an_py310.py *} ## 运行 { #run-it } /// info | 信息 当你使用命令 `pip install "fastapi[standard]"` 安装 **FastAPI** 时,[`python-multipart`](https://github.com/Kludex/python-multipart) 包会自动安装。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 7.5K bytes - Click Count (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
If the token is invalid, return an HTTP error right away. {* ../../docs_src/security/tutorial004_an_py310.py hl[93:110] *} ## Update the `/token` *path operation* { #update-the-token-path-operation } Create a `timedelta` with the expiration time of the token. Create a real JWT access token and return it. {* ../../docs_src/security/tutorial004_an_py310.py hl[121:136] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 10.7K bytes - Click Count (0) -
docs/ko/docs/tutorial/dependencies/sub-dependencies.md
필요한 만큼 **깊게** 중첩할 수도 있습니다. 이것을 해결하는 일은 **FastAPI**가 알아서 처리합니다. ## 첫 번째 의존성 "dependable" { #first-dependency-dependable } 다음과 같이 첫 번째 의존성("dependable")을 만들 수 있습니다: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} 이 의존성은 선택적 쿼리 파라미터 `q`를 `str`로 선언하고, 그대로 반환합니다. 매우 단순한 예시(그다지 유용하진 않음)이지만, 하위 의존성이 어떻게 동작하는지에 집중하는 데 도움이 됩니다. ## 두 번째 의존성 "dependable"과 "dependant" { #second-dependency-dependable-and-dependant }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 4.3K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/dependencies/sub-dependencies.md
你可以建立第一個相依項("dependable")如下: {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[8:9] *} 它宣告了一個可選的查詢參數 `q`(型別為 `str`),然後直接回傳它。 這很簡單(不太實用),但有助於我們專注於子相依如何運作。 ## 第二個相依,同時是 "dependable" 也是 "dependant" { #second-dependency-dependable-and-dependant } 接著你可以建立另一個相依函式("dependable"),同時它也宣告了自己的相依(因此它同時也是 "dependant"): {* ../../docs_src/dependencies/tutorial005_an_py310.py hl[13] *} 來看它所宣告的參數:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:15:26 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/es/docs/how-to/authentication-error-status-code.md
Por ejemplo, puedes crear una subclase de `HTTPBearer` que devuelva un error `403 Forbidden` en lugar del `401 Unauthorized` por defecto: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py310.py hl[9:13] *} /// tip | Consejo Ten en cuenta que la función devuelve la instance de la excepción, no la lanza. El lanzamiento se hace en el resto del código interno.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 1.2K bytes - Click Count (0) -
docs/de/docs/tutorial/dependencies/global-dependencies.md
In diesem Fall werden sie auf alle *Pfadoperationen* in der Anwendung angewendet: {* ../../docs_src/dependencies/tutorial012_an_py310.py hl[17] *}Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 1.1K bytes - Click Count (0) -
docs/zh/docs/tutorial/request-forms.md
``` /// ## 导入 `Form` { #import-form } 从 `fastapi` 导入 `Form`: {* ../../docs_src/request_forms/tutorial001_an_py310.py hl[3] *} ## 定义 `Form` 参数 { #define-form-parameters } 创建表单参数的方式与 `Body` 或 `Query` 相同: {* ../../docs_src/request_forms/tutorial001_an_py310.py hl[9] *} 例如,在 OAuth2 规范的一种使用方式(称为“密码流”)中,要求将 `username` 和 `password` 作为表单字段发送。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 2.5K bytes - Click Count (0) -
docs/ru/docs/tutorial/extra-data-types.md
{* ../../docs_src/extra_data_types/tutorial001_an_py310.py hl[1,3,12:16] *} Обратите внимание, что параметры внутри функции имеют свой естественный тип данных, и вы, например, можете выполнять обычные манипуляции с датами, такие как:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 4.3K bytes - Click Count (0) -
docs/ko/docs/tutorial/cookie-params.md
## `Cookie` 임포트 { #import-cookie } 먼저 `Cookie`를 임포트합니다: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[3] *} ## `Cookie` 매개변수 선언 { #declare-cookie-parameters } 그런 다음, `Path`와 `Query`처럼 동일한 구조를 사용하는 쿠키 매개변수를 선언합니다. 첫 번째 값은 기본값이며, 추가 검증이나 어노테이션 매개변수 모두 전달할 수 있습니다: {* ../../docs_src/cookie_params/tutorial001_an_py310.py hl[9] *} /// note | 기술 세부사항Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 1.9K bytes - Click Count (0)