- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 277 for tutorial010_an_py310 (0.09 seconds)
-
docs/ko/docs/tutorial/dependencies/index.md
/// ### `Depends` 불러오기 {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *} ### "의존자"에 의존성 명시하기 *경로 작동 함수*의 매개변수로 `Body`, `Query` 등을 사용하는 방식과 같이 새로운 매개변수로 `Depends`를 사용합니다: {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *} 비록 `Body`, `Query` 등을 사용하는 것과 같은 방식으로 여러분의 함수의 매개변수에 있는 `Depends`를 사용하지만, `Depends`는 약간 다르게 작동합니다.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 11.1K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/oauth2-jwt.md
새 액세스 토큰을 생성하기 위한 유틸리티 함수를 생성합니다. {* ../../docs_src/security/tutorial004_an_py310.py hl[4,7,13:15,29:31,79:87] *} ## 의존성 수정 `get_current_user` 함수를 이전과 동일한 토큰을 받도록 수정하되, 이번에는 JWT 토큰을 사용하도록 합니다. 받은 토큰을 디코딩하여 검증한 후 현재 사용자를 반환합니다. 토큰이 유효하지 않다면 HTTP 오류를 반환합니다. {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *} ## `/token` 경로 작업 수정 토큰의 만료 시각을 설정하기 위해 `timedelta` 를 생성합니다.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:49:48 GMT 2025 - 12.2K bytes - Click Count (0) -
tests/test_tutorial/test_security/test_tutorial003.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial003_py39"), pytest.param("tutorial003_py310", marks=needs_py310), pytest.param("tutorial003_an_py39"), pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.security.{request.param}") client = TestClient(mod.app) return client
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
docs/ko/docs/advanced/testing-dependencies.md
테스트를 위해 의존성을 오버라이드하려면, 원래 의존성(함수)을 키로 설정하고 오버라이드할 의존성(다른 함수)을 값으로 설정합니다. 그럼 **FastAPI**는 원래 의존성 대신 오버라이드된 의존성을 호출합니다. {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | 팁 **FastAPI** 애플리케이션 어디에서든 사용된 의존성에 대해 오버라이드를 설정할 수 있습니다. 원래 의존성은 *경로 동작 함수*, *경로 동작 데코레이터*(반환값을 사용하지 않는 경우), `.include_router()` 호출 등에서 사용될 수 있습니다.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 27 22:12:04 GMT 2024 - 2.6K bytes - Click Count (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial004.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial004_py39"), pytest.param("tutorial004_py310", marks=needs_py310), pytest.param("tutorial004_an_py39"), pytest.param("tutorial004_an_py310", marks=needs_py310), pytest.param( "tutorial004_regex_an_py310", marks=( needs_py310, pytest.mark.filterwarnings(
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 12:45:20 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/de/docs/advanced/testing-dependencies.md
Und dann ruft **FastAPI** diese Überschreibung anstelle der ursprünglichen Abhängigkeit auf. {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | Tipp Sie können eine Überschreibung für eine Abhängigkeit festlegen, die an einer beliebigen Stelle in Ihrer **FastAPI**-Anwendung verwendet wird.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 15:10:09 GMT 2025 - 3.2K bytes - Click Count (0) -
docs/pt/docs/advanced/testing-dependencies.md
E então o **FastAPI** chamará a sobreposição no lugar da dependência original. {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | Dica Você pode definir uma sobreposição de dependência para uma dependência que é utilizada em qualquer lugar da sua aplicação **FastAPI**.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 2.7K bytes - Click Count (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial003.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial003_py39"), pytest.param("tutorial003_py310", marks=needs_py310), pytest.param("tutorial003_an_py39"), pytest.param("tutorial003_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.query_params_str_validations.{request.param}" )
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/uk/docs/tutorial/cookie-param-models.md
/// ## Cookie з Pydantic-моделлю Оголосіть **cookie-параметри**, які Вам потрібні, у **Pydantic-моделі**, а потім оголосіть параметр як `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** буде **витягувати** дані для **кожного поля** з **cookie** параметрів, отриманих у запиті, і передавати Вам Pydantic-модель, яку Ви визначили. ## Перевірка у документаціїCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Mar 19 17:03:38 GMT 2025 - 4.7K bytes - Click Count (0) -
docs/zh/docs/advanced/testing-dependencies.md
对于这些用例,**FastAPI** 应用支持 `app.dependency_overrides` 属性,该属性就是**字典**。 要在测试时覆盖原有依赖项,这个字典的键应当是原依赖项(函数),值是覆盖依赖项(另一个函数)。 这样一来,**FastAPI** 就会调用覆盖依赖项,不再调用原依赖项。 {* ../../docs_src/dependency_testing/tutorial001_an_py310.py hl[26:27,30] *} /// tip | 提示 **FastAPI** 应用中的任何位置都可以实现覆盖依赖项。 原依赖项可用于*路径操作函数*、*路径操作装饰器*(不需要返回值时)、`.include_router()` 调用等。 FastAPI 可以覆盖这些位置的依赖项。 ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 17 21:18:42 GMT 2024 - 1.9K bytes - Click Count (0)