- Sort Score
- Result 10 results
- Languages All
Results 1041 - 1050 of 1,992 for Fastapi (0.05 sec)
-
docs/ko/docs/tutorial/debugging.md
/// ## 디버거로 코드 실행 코드에서 직접 Uvicorn 서버를 실행하고 있기 때문에 디버거에서 직접 Python 프로그램(FastAPI 애플리케이션)을 호출할 수 있습니다. --- 예를 들어 Visual Studio Code에서 다음을 수행할 수 있습니다. * "Debug" 패널로 이동합니다. * "Add configuration...". * "Python"을 선택합니다. * "`Python: Current File (Integrated Terminal)`" 옵션으로 디버거를 실행합니다. 그런 다음 **FastAPI** 코드로 서버를 시작하고 중단점 등에서 중지합니다. 다음과 같이 표시됩니다. <img src="/img/tutorial/debugging/image01.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.7K bytes - Viewed (0) -
docs/ja/docs/tutorial/debugging.md
/// ## デバッガーでコードを実行 コードから直接Uvicornサーバーを実行しているため、デバッガーから直接Pythonプログラム (FastAPIアプリケーション) を呼び出せます。 --- 例えば、Visual Studio Codeでは、次のことが可能です: * 「デバッグ」パネルに移動。 * 「構成の追加...」 * 「Python」を選択。 * オプション「`Python: Current File (Integrated Terminal)`」を指定してデバッガーを実行。 すると、**FastAPI** コードでサーバーが起動され、ブレークポイントで停止したりするでしょう。 以下の様な画面になります: <img src="/img/tutorial/debugging/image01.png">
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 3K bytes - Viewed (0) -
fastapi/background.py
sent to the client. Read more about it in the [FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/). ## Example ```python from fastapi import BackgroundTasks, FastAPI app = FastAPI() def write_notification(email: str, message=""): with open("log.txt", mode="w") as email_file:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 1.8K bytes - Viewed (0) -
tests/test_tutorial/test_extending_openapi/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.extending_openapi.tutorial001_py39 import app client = TestClient(app) def test(): response = client.get("/items/") assert response.status_code == 200, response.text assert response.json() == [{"name": "Foo"}] def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.5K bytes - Viewed (0) -
docs/pt/docs/async.md
Se você estivar trabalhando com **FastAPI** não terá que se preocupar com isso, porquê essa "primeira" função será a sua *função de operação de rota*, e o FastAPI saberá como fazer a coisa certa. Mas se você quiser usar `async` / `await` sem FastAPI, você também pode fazê-lo. ### Escreva seu próprio código assíncrono { #write-your-own-async-code }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 25.8K bytes - Viewed (0) -
tests/test_security_scopes_dont_propagate.py
# Ref: https://github.com/tiangolo/fastapi/issues/5623 from typing import Annotated, Any from fastapi import FastAPI, Security from fastapi.security import SecurityScopes from fastapi.testclient import TestClient async def security1(scopes: SecurityScopes): return scopes.scopes async def security2(scopes: SecurityScopes): return scopes.scopes async def dep3(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 973 bytes - Viewed (0) -
docs/zh/docs/advanced/security/oauth2-scopes.md
**FastAPI** 无缝集成 OAuth2 作用域(`Scopes`),可以直接使用。 作用域是更精密的权限系统,遵循 OAuth2 标准,与 OpenAPI 应用(和 API 自动文档)集成。 OAuth2 也是脸书、谷歌、GitHub、微软、推特等第三方身份验证应用使用的机制。这些身份验证应用在用户登录应用时使用 OAuth2 提供指定权限。 脸书、谷歌、GitHub、微软、推特就是 OAuth2 作用域登录。 本章介绍如何在 **FastAPI** 应用中使用 OAuth2 作用域管理验证与授权。 /// warning | 警告 本章内容较难,刚接触 FastAPI 的新手可以跳过。 OAuth2 作用域不是必需的,没有它,您也可以处理身份验证与授权。 但 OAuth2 作用域与 API(通过 OpenAPI)及 API 文档集成地更好。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Dec 29 20:41:04 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/es/docs/tutorial/request-forms.md
```console $ pip install python-multipart ``` /// ## Importar `Form` { #import-form } Importar `Form` desde `fastapi`: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## Definir parámetros de `Form` { #define-form-parameters } Crea parámetros de formulario de la misma manera que lo harías para `Body` o `Query`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.1K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms.md
```console $ pip install python-multipart ``` /// ## Import `Form` { #import-form } Import `Form` from `fastapi`: {* ../../docs_src/request_forms/tutorial001_an_py39.py hl[3] *} ## Define `Form` parameters { #define-form-parameters } Create form parameters the same way you would for `Body` or `Query`:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 2.7K bytes - Viewed (0) -
fastapi/params.py
import warnings from collections.abc import Sequence from dataclasses import dataclass from enum import Enum from typing import Annotated, Any, Callable, Optional, Union from fastapi.exceptions import FastAPIDeprecationWarning from fastapi.openapi.models import Example from pydantic import AliasChoices, AliasPath from pydantic.fields import FieldInfo from typing_extensions import Literal, deprecated from ._compat import ( Undefined, )
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 26.3K bytes - Viewed (0)