- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 366 for starlette (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/en/docs/alternatives.md
**FastAPI** then takes that JSON Schema data and puts it in OpenAPI, apart from all the other things it does. /// ### [Starlette](https://www.starlette.dev/) { #starlette } Starlette is a lightweight <dfn title="The new standard for building asynchronous Python web applications">ASGI</dfn> framework/toolkit, which is ideal for building high-performance asyncio services.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 22.2K bytes - Click Count (0) -
docs/en/docs/tutorial/static-files.md
{* ../../docs_src/static_files/tutorial001_py310.py hl[2,6] *} /// note | Technical Details You could also use `from starlette.staticfiles import StaticFiles`. **FastAPI** provides the same `starlette.staticfiles` as `fastapi.staticfiles` just as a convenience for you, the developer. But it actually comes directly from Starlette. /// ### What is "Mounting" { #what-is-mounting }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 1.6K bytes - Click Count (0) -
docs/en/docs/advanced/response-headers.md
/// note | Technical Details You could also use `from starlette.responses import Response` or `from starlette.responses import JSONResponse`. **FastAPI** provides the same `starlette.responses` as `fastapi.responses` just as a convenience for you, the developer. But most of the available responses come directly from Starlette.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 2.2K bytes - Click Count (0) -
docs/zh/docs/deployment/versions.md
你应该为你的应用程序添加测试。 使用 **FastAPI** 编写测试非常简单(感谢 Starlette),请参考文档:[测试](../tutorial/testing.md) 添加测试后,你可以将 **FastAPI** 版本升级到更新版本,并通过运行测试来确保所有代码都能正常工作。 如果一切正常,或者在进行必要的更改之后,并且所有测试都通过了,那么你可以将`fastapi`固定到新的版本。 ## 关于Starlette { #about-starlette } 你不应该固定`starlette`的版本。 不同版本的 **FastAPI** 将使用特定的较新版本的 Starlette。 因此,**FastAPI** 自己可以使用正确的 Starlette 版本。 ## 关于 Pydantic { #about-pydantic }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.2K bytes - Click Count (0) -
docs/zh/docs/advanced/middleware.md
以及如何[使用 `CORSMiddleware` 处理 CORS](../tutorial/cors.md)。 本章学习如何使用其它中间件。 ## 添加 ASGI 中间件 { #adding-asgi-middlewares } 因为 **FastAPI** 基于 Starlette,且执行 <abbr title="Asynchronous Server Gateway Interface - 异步服务器网关接口">ASGI</abbr> 规范,所以可以使用任意 ASGI 中间件。 中间件不必是专为 FastAPI 或 Starlette 定制的,只要遵循 ASGI 规范即可。 总之,ASGI 中间件是类,并把 ASGI 应用作为第一个参数。 因此,有些第三方 ASGI 中间件的文档推荐以如下方式使用中间件: ```Python from unicorn import UnicornMiddlewareCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 3.7K bytes - Click Count (0) -
docs/zh/docs/features.md
* 代码库100% <dfn title="Python 类型注解,有了这个你的编辑器和外部工具可以给你更好的支持">类型注释</dfn>。 * 用于生产应用。 ## Starlette 特性 { #starlette-features } **FastAPI** 和 [**Starlette**](https://www.starlette.dev/) 完全兼容(并基于)。所以,你有的其他的 Starlette 代码也能正常工作。`FastAPI` 实际上是 `Starlette` 的一个子类。所以,如果你已经知道或者使用 Starlette,大部分的功能会以相同的方式工作。 通过 **FastAPI** 你可以获得所有 **Starlette** 的特性(FastAPI 就像加强版的 Starlette):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
docs/zh-hant/docs/features.md
* 已能夠在生產環境應用程式中使用。 ## Starlette 特性 { #starlette-features } **FastAPI** 完全相容且基於 [**Starlette**](https://www.starlette.dev/)。所以,你有其他的 Starlette 程式碼也能正常運作。`FastAPI` 實際上是 `Starlette` 的一個子類別。所以,如果你已經知道或者使用過 Starlette,大部分的功能會以相同的方式運作。 通過 **FastAPI** 你可以獲得所有 **Starlette** 的特性(FastAPI 就像加強版的 Starlette): * 性能極其出色。它是 [Python 可用的最快框架之一,和 **NodeJS** 及 **Go** 相當](https://github.com/encode/starlette#performance)。 * **支援 WebSocket**。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 9.2K bytes - Click Count (0) -
docs/zh-hant/docs/tutorial/static-files.md
- 匯入 `StaticFiles`。 - 在特定路徑上「掛載」一個 `StaticFiles()` 實例。 {* ../../docs_src/static_files/tutorial001_py310.py hl[2,6] *} /// note | 技術細節 你也可以使用 `from starlette.staticfiles import StaticFiles`。 **FastAPI** 為了方便開發者,提供與 `starlette.staticfiles` 相同的介面作為 `fastapi.staticfiles`。但它其實是直接來自 Starlette。 /// ### 什麼是「掛載」 { #what-is-mounting } 「掛載(mounting)」是指在特定路徑下加入一個完整且「獨立」的應用,之後所有該路徑下的子路徑都由它處理。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 1.6K bytes - Click Count (0) -
docs/en/docs/reference/websockets.md
Read more about it in the [FastAPI docs for WebSockets](https://fastapi.tiangolo.com/advanced/websockets/) It is provided directly by Starlette, but you can import it from `fastapi`: ```python from fastapi import WebSocket ``` /// tip
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 12:41:54 GMT 2026 - 2K bytes - Click Count (0) -
tests/test_datastructures.py
from fastapi.datastructures import Default from fastapi.testclient import TestClient def test_upload_file_invalid_pydantic_v2(): with pytest.raises(ValueError): UploadFile._validate("not a Starlette UploadFile", {}) def test_default_placeholder_equals(): placeholder_1 = Default("a") placeholder_2 = Default("a") assert placeholder_1 == placeholder_2
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.8K bytes - Click Count (0)