- Sort Score
- Result 10 results
- Languages All
Results 1641 - 1650 of 1,916 for FastApi (0.05 sec)
-
tests/test_tutorial/test_security/test_tutorial002.py
import importlib import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial002_py39"), pytest.param("tutorial002_py310", marks=needs_py310), pytest.param("tutorial002_an_py39"), pytest.param("tutorial002_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 2.2K bytes - Viewed (0) -
docs/ru/docs/tutorial/security/oauth2-jwt.md
Таким образом, вы сможете, например, совместно использовать одни и те же данные из приложения Django в базе данных с приложением FastAPI. Или постепенно мигрировать Django-приложение, используя ту же базу данных. При этом пользователи смогут одновременно входить в систему как из приложения Django, так и из приложения **FastAPI**. /// ## Хеширование и проверка паролей { #hash-and-verify-the-passwords }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 30 11:24:39 UTC 2025 - 19.1K bytes - Viewed (0) -
docs/de/docs/deployment/https.md
**verschlüsselten HTTPS-<abbr title="Request – Anfrage: Daten, die der Client zum Server sendet">Requests</abbr>**, Senden der **entschlüsselten HTTP-Requests** an die eigentliche HTTP-Anwendung die auf demselben Server läuft (in diesem Fall die **FastAPI**-Anwendung), entgegennehmen der **HTTP-Response** von der Anwendung, **verschlüsseln derselben** mithilfe des entsprechenden **HTTPS-Zertifikats** und Zurücksenden zum Client über **HTTPS**. Dieser Server wird oft als **<a href="https://en.wikip...
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 16.1K bytes - Viewed (0) -
docs_src/bigger_applications/app_an_py39/routers/items.py
from fastapi import APIRouter, Depends, HTTPException from ..dependencies import get_token_header router = APIRouter( prefix="/items", tags=["items"], dependencies=[Depends(get_token_header)], responses={404: {"description": "Not found"}}, ) fake_items_db = {"plumbus": {"name": "Plumbus"}, "gun": {"name": "Portal Gun"}} @router.get("/") async def read_items(): return fake_items_db
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 1011 bytes - Viewed (0) -
docs/es/docs/deployment/https.md
servidor (la máquina, host, etc.) y **gestionando todas las partes de HTTPS**: recibiendo los **requests HTTPS encriptados**, enviando los **requests HTTP desencriptados** a la aplicación HTTP real que se ejecuta en el mismo servidor (la aplicación **FastAPI**, en este caso), tomando el **response HTTP** de la aplicación, **encriptándolo** usando el **certificado HTTPS** adecuado y enviándolo de vuelta al cliente usando **HTTPS**. Este servidor a menudo se llama un **<a href="https://en.wikipedia.org...
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 15.4K bytes - Viewed (0) -
docs/zh/docs/deployment/concepts.md
与确保应用程序在启动时运行类似,您可能还想确保它在挂掉后**重新启动**。 ### 我们会犯错误 作为人类,我们总是会犯**错误**。 软件几乎*总是*在不同的地方隐藏着**bug**。 🐛 作为开发人员,当我们发现这些bug并实现新功能(也可能添加新bug😅)时,我们会不断改进代码。 ### 自动处理小错误 使用 FastAPI 构建 Web API 时,如果我们的代码中存在错误,FastAPI 通常会将其包含到触发错误的单个请求中。 🛡 对于该请求,客户端将收到 **500 内部服务器错误**,但应用程序将继续处理下一个请求,而不是完全崩溃。 ### 更大的错误 - 崩溃 尽管如此,在某些情况下,我们编写的一些代码可能会导致整个应用程序崩溃,从而导致 Uvicorn 和 Python 崩溃。 💥
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun May 11 13:37:26 UTC 2025 - 16.2K bytes - Viewed (0) -
docs/es/docs/tutorial/middleware.md
# Middleware { #middleware } Puedes añadir middleware a las aplicaciones de **FastAPI**. Un "middleware" es una función que trabaja con cada **request** antes de que sea procesada por cualquier *path operation* específica. Y también con cada **response** antes de devolverla. * Toma cada **request** que llega a tu aplicación. * Puede entonces hacer algo a esa **request** o ejecutar cualquier código necesario.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md
有些编辑器会检查代码中没使用过的函数参数,并显示错误提示。 在*路径操作装饰器*中使用 `dependencies` 参数,可以确保在执行依赖项的同时,避免编辑器显示错误提示。 使用路径装饰器依赖项还可以避免开发新人误会代码中包含无用的未使用参数。 /// /// info | 说明 本例中,使用的是自定义响应头 `X-Key` 和 `X-Token`。 但实际开发中,尤其是在实现安全措施时,最好使用 FastAPI 内置的[安全工具](../security/index.md){.internal-link target=_blank}(详见下一章)。 /// ## 依赖项错误和返回值 路径装饰器依赖项也可以使用普通的依赖项*函数*。 ### 依赖项的需求项 路径装饰器依赖项可以声明请求的需求项(比如响应头)或其他子依赖项:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/path-params-numeric-validations.md
# 路径参数和数值校验 与使用 `Query` 为查询参数声明更多的校验和元数据的方式相同,你也可以使用 `Path` 为路径参数声明相同类型的校验和元数据。 ## 导入 Path 首先,从 `fastapi` 导入 `Path`: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[1,3] *} ## 声明元数据 你可以声明与 `Query` 相同的所有参数。 例如,要声明路径参数 `item_id`的 `title` 元数据值,你可以输入: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// note 路径参数总是必需的,因为它必须是路径的一部分。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 4.6K bytes - Viewed (0) -
docs/zh/llm-prompt.md
2) Do not add trailing punctuation to headings. 3) If a heading contains only the name of a FastAPI feature, do not translate it. ### Quotes and punctuation 1) Keep punctuation style consistent with existing Simplified Chinese docs (they often mix English terms like “FastAPI” with Chinese text). 2) Never change punctuation inside inline code, code blocks, URLs, or file paths. ### Ellipsis
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:49:08 UTC 2025 - 1.4K bytes - Viewed (0)