- Sort Score
- Result 10 results
- Languages All
Results 1861 - 1870 of 2,058 for py$ (0.03 sec)
-
docs/ja/docs/tutorial/security/first-steps.md
ですが、ちょっとした必要な情報を探すために、長い仕様のすべてを読む必要はありません。 **FastAPI**が提供するツールを使って、セキュリティを制御してみましょう。 ## どう見えるか まずはこのコードを使って、どう動くか観察します。その後で、何が起こっているのか理解しましょう。 ## `main.py`を作成 `main.py`に、下記の例をコピーします: {* ../../docs_src/security/tutorial001.py *} ## 実行 /// info | 情報 まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 10.4K bytes - Viewed (0) -
docs/en/docs/how-to/authentication-error-status-code.md
For example, you can create a subclass of `HTTPBearer` that returns a `403 Forbidden` error instead of the default `401 Unauthorized` error: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *} /// tip Notice that the function returns the exception instance, it doesn't raise it. The raising is done in the rest of the internal code.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 1.3K bytes - Viewed (0) -
docs/pt/docs/advanced/wsgi.md
Você precisa importar o `WSGIMiddleware`. Em seguida, encapsule a aplicação WSGI (e.g. Flask) com o middleware. E então monte isso sob um path. {* ../../docs_src/wsgi/tutorial001_py39.py hl[2:3,3] *} ## Confira { #check-it } Agora, todas as requisições sob o path `/v1/` serão manipuladas pela aplicação Flask. E o resto será manipulado pelo **FastAPI**.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.2K bytes - Viewed (0) -
docs/pt/docs/how-to/authentication-error-status-code.md
Por exemplo, você pode criar uma subclasse de `HTTPBearer` que retorne um erro `403 Forbidden` em vez do erro padrão `401 Unauthorized`: {* ../../docs_src/authentication_error_status_code/tutorial001_an_py39.py hl[9:13] *} /// tip | Dica Perceba que a função retorna a instância da exceção, ela não a lança. O lançamento é feito no restante do código interno.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 19:59:04 UTC 2025 - 1.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/oauth2-jwt.md
创建设置令牌过期时间的变量。 定义令牌端点响应的 Pydantic 模型。 创建生成新的访问令牌的工具函数。 {* ../../docs_src/security/tutorial004.py hl[6,12:14,28:30,78:86] *} ## 更新依赖项 更新 `get_current_user` 以接收与之前相同的令牌,但这里用的是 JWT 令牌。 解码并校验接收到的令牌,然后,返回当前用户。 如果令牌无效,则直接返回 HTTP 错误。 {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *} ## 更新 `/token` *路径操作* 用令牌过期时间创建 `timedelta` 对象。 创建并返回真正的 JWT 访问令牌。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/middleware.md
* Então ela retorna a `response` gerada pela *operação de rota* correspondente. * Você pode então modificar ainda mais o `response` antes de retorná-lo. {* ../../docs_src/middleware/tutorial001_py39.py hl[8:9,11,14] *} /// tip | DicaRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/cookie-param-models.md
동일한 기술이 `Query`, `Cookie`, 그리고 `Header`에 적용됩니다. 😎 /// ## Pydantic 모델을 사용한 쿠키 **Pydantic 모델**에 필요한 **쿠키** 매개변수를 선언한 다음, 해당 매개변수를 `Cookie`로 선언합니다: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI**는 요청에서 받은 **쿠키**에서 **각 필드**에 대한 데이터를 **추출**하고 정의한 Pydantic 모델을 줍니다. ## 문서 확인하기 문서 UI `/docs`에서 정의한 쿠키를 볼 수 있습니다: <div class="screenshot">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Dec 09 12:47:02 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/ko/docs/tutorial/request-forms.md
``` /// ## `Form` 임포트하기 `fastapi`에서 `Form`을 임포트합니다: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## `Form` 매개변수 정의하기 `Body` 또는 `Query`와 동일한 방식으로 폼 매개변수를 만듭니다: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[9] *} 예를 들어, OAuth2 사양을 사용할 수 있는 방법 중 하나("패스워드 플로우"라고 함)로 `username`과 `password`를 폼 필드로 보내야 합니다.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Dec 09 12:42:55 UTC 2024 - 3K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/global-dependencies.md
В этом случае они будут применяться ко всем *операциям пути* в приложении: {* ../../docs_src/dependencies/tutorial012_an_py39.py hl[17] *}Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
configure.cmd
:: License for the specific language governing permissions and limitations under :: the License. @echo off set configure_dir=%~dp0 set configure_dir=%configure_dir:~0,-1% python "%configure_dir%\configure.py" %* || ( exit /b )
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Tue Aug 11 09:27:42 UTC 2020 - 782 bytes - Viewed (0)