- Sort Score
- Result 10 results
- Languages All
Results 1541 - 1550 of 1,992 for Fastapi (0.42 sec)
-
docs/zh/docs/learn/index.md
# 学习 以下是学习 **FastAPI** 的介绍部分和教程。
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Jan 09 15:33:25 UTC 2024 - 182 bytes - Viewed (0) -
docs/en/docs/tutorial/security/oauth2-jwt.md
So, you would be able to, for example, share the same data from a Django application in a database with a FastAPI application. Or gradually migrate a Django application using the same database. And your users would be able to login from your Django app or from your **FastAPI** app, at the same time. /// ## Hash and verify the passwords { #hash-and-verify-the-passwords }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 10.6K bytes - Viewed (0) -
docs/ru/docs/tutorial/cookie-param-models.md
Объявите параметры **cookie**, которые вам нужны, в **Pydantic-модели**, а затем объявите параметр как `Cookie`: {* ../../docs_src/cookie_param_models/tutorial001_an_py310.py hl[9:12,16] *} **FastAPI** **извлечёт** данные для **каждого поля** из **cookies**, полученных в запросе, и выдаст вам объявленную Pydantic-модель. ## Проверка сгенерированной документации { #check-the-docs }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Dec 11 21:25:03 UTC 2025 - 5K bytes - Viewed (0) -
tests/test_tutorial/test_openapi_callbacks/test_tutorial001.py
import importlib from types import ModuleType import pytest from fastapi.testclient import TestClient from tests.utils import needs_py310 @pytest.fixture( name="mod", params=[ pytest.param("tutorial001_py39"), pytest.param("tutorial001_py310", marks=needs_py310), ], ) def get_mod(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.openapi_callbacks.{request.param}")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8.6K bytes - Viewed (0) -
docs_src/sql_databases/tutorial002_an_py310.py
from typing import Annotated from fastapi import Depends, FastAPI, HTTPException, Query from sqlmodel import Field, Session, SQLModel, create_engine, select class HeroBase(SQLModel): name: str = Field(index=True) age: int | None = Field(default=None, index=True) class Hero(HeroBase, table=True): id: int | None = Field(default=None, primary_key=True) secret_name: str class HeroPublic(HeroBase): id: int
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Oct 09 19:44:42 UTC 2024 - 2.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/static-files.md
* "挂载"(Mount) 一个 `StaticFiles()` 实例到一个指定路径。 {* ../../docs_src/static_files/tutorial001.py hl[2,6] *} /// note | 技术细节 你也可以用 `from starlette.staticfiles import StaticFiles`。 **FastAPI** 提供了和 `starlette.staticfiles` 相同的 `fastapi.staticfiles` ,只是为了方便你,开发者。但它确实来自Starlette。 /// ### 什么是"挂载"(Mounting) "挂载" 表示在特定路径添加一个完全"独立的"应用,然后负责处理所有子路径。 这与使用`APIRouter`不同,因为安装的应用程序是完全独立的。OpenAPI和来自你主应用的文档不会包含已挂载应用的任何东西等等。Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Oct 11 17:48:49 UTC 2025 - 1.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/body-fields.md
Primeiro, você tem que importá-lo: {* ../../docs_src/body_fields/tutorial001_an_py310.py hl[4] *} /// warning | Atenção Note que `Field` é importado diretamente do `pydantic`, não do `fastapi` como todo o resto (`Query`, `Path`, `Body`, etc). /// ## Declare atributos do modelo { #declare-model-attributes } Você pode então utilizar `Field` com atributos do modelo:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 2.6K bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial001.py
import importlib import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ "tutorial001_py39", pytest.param("tutorial001_py310", marks=needs_py310), "tutorial001_an_py39", pytest.param("tutorial001_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6.3K bytes - Viewed (0) -
tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py
import importlib import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture( name="client", params=[ pytest.param("tutorial001_py39"), pytest.param("tutorial001_py310", marks=needs_py310), pytest.param("tutorial001_an_py39"), pytest.param("tutorial001_an_py310", marks=needs_py310), pytest.param("tutorial001_02_an_py39"),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7K bytes - Viewed (0) -
tests/test_tutorial/test_path_operation_configurations/test_tutorial003_tutorial004.py
import importlib from textwrap import dedent import pytest from dirty_equals import IsList from fastapi.testclient import TestClient from ...utils import needs_py310 DESCRIPTIONS = { "tutorial003": "Create an item with all the information, name, description, price, tax and a set of unique tags", "tutorial004": dedent(""" Create an item with all the information: - **name**: each item must have a nameRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 7K bytes - Viewed (0)