- Sort Score
- Result 10 results
- Languages All
Results 1191 - 1200 of 2,000 for Fastapi (0.05 sec)
-
.github/actions/people/action.yml
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jul 09 15:44:40 UTC 2023 - 333 bytes - Viewed (0) -
docs/zh/docs/deployment/docker.md
Successfully installed fastapi pydantic uvicorn ``` </div> /// info 还有其他文件格式和工具来定义和安装依赖项。 我将在下面的部分中向你展示一个使用 Poetry 的示例。 👇 /// ### 创建 **FastAPI** 代码 * 创建`app`目录并进入。 * 创建一个空文件`__init__.py`。 * 创建一个 `main.py` 文件: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 31.2K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params-numeric-validations.md
``` //// /// info FastAPI unterstützt (und empfiehlt die Verwendung von) `Annotated` seit Version 0.95.0. Wenn Sie eine ältere Version haben, werden Sie Fehler angezeigt bekommen, wenn Sie versuchen, `Annotated` zu verwenden.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 10.1K bytes - Viewed (0) -
docs/de/docs/advanced/wsgi.md
```Python hl_lines="2-3 23" {!../../docs_src/wsgi/tutorial001.py!} ``` ## Es ansehen Jetzt wird jede Anfrage unter dem Pfad `/v1/` von der Flask-Anwendung verarbeitet. Und der Rest wird von **FastAPI** gehandhabt. Wenn Sie das mit Uvicorn ausführen und auf <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a> gehen, sehen Sie die Response von Flask: ```txt
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.2K bytes - Viewed (0) -
docs/pt/docs/advanced/wsgi.md
```Python hl_lines="2-3 23" {!../../docs_src/wsgi/tutorial001.py!} ``` ## Conferindo Agora todas as requisições sob o caminho `/v1/` serão manipuladas pela aplicação utilizando Flask. E o resto será manipulado pelo **FastAPI**. Se você rodar a aplicação e ir até <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a>, você verá o retorno do Flask: ```txt Hello, World from Flask! ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.2K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial012_an.py
from fastapi.testclient import TestClient from docs_src.query_params_str_validations.tutorial012_an import app client = TestClient(app) def test_default_query_values(): url = "/items/" response = client.get(url) assert response.status_code == 200, response.text assert response.json() == {"q": ["foo", "bar"]} def test_multi_query_values(): url = "/items/?q=baz&q=foobar" response = client.get(url)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.4K bytes - Viewed (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial014_an_py310.py
import pytest from fastapi.testclient import TestClient from ...utils import needs_py310 @pytest.fixture(name="client") def get_client(): from docs_src.query_params_str_validations.tutorial014_an_py310 import app client = TestClient(app) return client @needs_py310 def test_hidden_query(client: TestClient): response = client.get("/items?hidden_query=somevalue")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/index.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 4.7K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-status-codes.md
``` /// warning | "警告" 当你直接返回一个像上面例子中的 `Response` 对象时,它会直接返回。 FastAPI 不会用模型等对该响应进行序列化。 确保其中有你想要的数据,且返回的值为合法的 JSON(如果你使用 `JSONResponse` 的话)。 /// /// note | "技术细节" 你也可以使用 `from starlette.responses import JSONResponse`。 出于方便,**FastAPI** 为开发者提供同 `starlette.responses` 一样的 `fastapi.responses`。但是大多数可用的响应都是直接来自 Starlette。`status` 也是一样。 /// ## OpenAPI 和 API 文档
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.8K bytes - Viewed (0) -
tests/test_filter_pydantic_sub_model_pv2.py
import pytest from dirty_equals import HasRepr, IsDict, IsOneOf from fastapi import Depends, FastAPI from fastapi.exceptions import ResponseValidationError from fastapi.testclient import TestClient from .utils import needs_pydanticv2 @pytest.fixture(name="client") def get_client(): from pydantic import BaseModel, ValidationInfo, field_validator app = FastAPI() class ModelB(BaseModel): username: str
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 6.3K bytes - Viewed (0)