- Sort Score
- Result 10 results
- Languages All
Results 761 - 770 of 1,916 for FastApi (0.03 sec)
-
tests/test_inherited_custom_class.py
import uuid import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel class MyUuid: def __init__(self, uuid_string: str): self.uuid = uuid_string def __str__(self): return self.uuid @property # type: ignore def __class__(self): return uuid.UUID @property def __dict__(self):Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 1.8K bytes - Viewed (0) -
docs/zh-hant/docs/learn/index.md
# 學習 以下是學習 FastAPI 的入門介紹和教學。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Feb 16 12:06:22 UTC 2024 - 186 bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
from typing import Optional import pytest from fastapi import Depends, FastAPI, Security from fastapi.security import OAuth2, OAuth2PasswordRequestFormStrict from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() reusable_oauth2 = OAuth2( flows={ "password": { "tokenUrl": "token", "scopes": {"read:users": "Read the users", "write:users": "Create users"}, }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8.9K bytes - Viewed (0) -
docs/de/docs/how-to/testing-database.md
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 20 15:10:09 UTC 2025 - 598 bytes - Viewed (0) -
tests/test_operations_signatures.py
import inspect from fastapi import APIRouter, FastAPI method_names = ["get", "put", "post", "delete", "options", "head", "patch", "trace"] def test_signatures_consistency(): base_sig = inspect.signature(APIRouter.get) for method_name in method_names: router_method = getattr(APIRouter, method_name) app_method = getattr(FastAPI, method_name) router_sig = inspect.signature(router_method)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon May 27 12:08:13 UTC 2019 - 934 bytes - Viewed (0) -
docs_src/extra_models/tutorial002_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel, EmailStr app = FastAPI() class UserBase(BaseModel): username: str email: EmailStr full_name: Union[str, None] = None class UserIn(UserBase): password: str class UserOut(UserBase): pass class UserInDB(UserBase): hashed_password: str def fake_password_hasher(raw_password: str):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 830 bytes - Viewed (0) -
docs/ru/docs/how-to/configure-swagger-ui.md
Чтобы настроить их, передайте аргумент `swagger_ui_parameters` при создании объекта приложения `FastAPI()` или в функцию `get_swagger_ui_html()`. `swagger_ui_parameters` принимает словарь с настройками, которые передаются в Swagger UI напрямую. FastAPI преобразует эти настройки в **JSON**, чтобы они были совместимы с JavaScript, поскольку именно это требуется Swagger UI.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.2K bytes - Viewed (0) -
docs/pt/docs/advanced/response-headers.md
**FastAPI** fornece as mesmas `starlette.responses` como `fastapi.responses` apenas como uma conveniência para você, desenvolvedor. Mas a maioria das respostas disponíveis vem diretamente do Starlette. E como a `Response` pode ser usada frequentemente para definir cabeçalhos e cookies, **FastAPI** também a fornece em `fastapi.Response`. /// ## Cabeçalhos personalizados { #custom-headers }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.6K bytes - Viewed (0) -
docs/es/docs/advanced/using-request-directly.md
* El path como parámetros. * Headers. * Cookies. * etc. Y al hacerlo, **FastAPI** está validando esos datos, convirtiéndolos y generando documentación para tu API automáticamente. Pero hay situaciones donde podrías necesitar acceder al objeto `Request` directamente. ## Detalles sobre el objeto `Request` { #details-about-the-request-object }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 2.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/debugging.md
/// ## 使用你的调试器运行代码 由于是从代码直接运行的 Uvicorn 服务器,所以你可以从调试器直接调用 Python 程序(你的 FastAPI 应用)。 --- 例如,你可以在 Visual Studio Code 中: * 进入到「调试」面板。 * 「添加配置...」。 * 选中「Python」 * 运行「Python:当前文件(集成终端)」选项的调试器。 然后它会使用你的 **FastAPI** 代码开启服务器,停在断点处,等等。 看起来可能是这样: <img src="/img/tutorial/debugging/image01.png"> --- 如果使用 Pycharm,你可以: * 打开「运行」菜单。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 2.3K bytes - Viewed (0)