- Sort Score
- Num 10 results
- Language All
Results 561 - 570 of 1,045 for cython (0.17 seconds)
-
docs/zh/docs/tutorial/dependencies/index.md
当你需要使用 `common_parameters()` 这个依赖时,你必须写出完整的带类型注解和 `Depends()` 的参数: ```Python commons: Annotated[dict, Depends(common_parameters)] ``` 但因为我们使用了 `Annotated`,可以把这个 `Annotated` 的值存到一个变量里,在多个地方复用: {* ../../docs_src/dependencies/tutorial001_02_an_py310.py hl[12,16,21] *} /// tip | 提示 这只是标准的 Python,叫做“类型别名”,并不是 **FastAPI** 特有的。 但因为 **FastAPI** 基于 Python 标准(包括 `Annotated`),你就可以在代码里使用这个技巧。😎 ///
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/docs/tutorial/first-steps.md
entrypoint = "main:app" ``` 该 `entrypoint` 会告诉 `fastapi` 命令按如下方式导入应用: ```python from main import app ``` 如果你的代码结构如下: ``` . ├── backend │ ├── main.py │ ├── __init__.py ``` 那么你可以将 `entrypoint` 设置为: ```toml [tool.fastapi] entrypoint = "backend.main:app" ``` 这等价于: ```python from backend.main import app ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 13.3K bytes - Click Count (0) -
docs/en/docs/advanced/additional-responses.md
For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ``` Here, `new_dict` will contain all the key-value pairs from `old_dict` plus the new key-value pair: ```Python { "old key": "old value",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 8.8K bytes - Click Count (0) -
docs/es/docs/advanced/additional-responses.md
Para esos casos, puedes usar la técnica de Python de "desempaquetar" un `dict` con `**dict_to_unpack`: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ``` Aquí, `new_dict` contendrá todos los pares clave-valor de `old_dict` más el nuevo par clave-valor: ```Python { "old key": "old value",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 9.2K bytes - Click Count (0) -
docs/de/docs/advanced/additional-responses.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 9.9K bytes - Click Count (0) -
docs/uk/docs/advanced/openapi-callbacks.md
Фактичний код зворотного виклику сильно залежатиме від вашого застосунку API. І, ймовірно, сильно відрізнятиметься від застосунку до застосунку. Це можуть бути лише один-два рядки коду, наприклад: ```Python callback_url = "https://example.com/api/v1/invoices/events/" httpx.post(callback_url, json={"description": "Invoice paid", "paid": True}) ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 12K bytes - Click Count (0) -
docs/en/docs/reference/templating.md
Read more about it in the [FastAPI docs for Templates](https://fastapi.tiangolo.com/advanced/templates/). You can import it directly from `fastapi.templating`: ```python from fastapi.templating import Jinja2Templates ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 365 bytes - Click Count (0) -
docs/de/docs/tutorial/dependencies/index.md
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 11.3K bytes - Click Count (0) -
docs/en/docs/reference/uploadfile.md
# `UploadFile` class You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request. You can import it directly from `fastapi`: ```python from fastapi import UploadFile ``` ::: fastapi.UploadFile options: members: - file - filename - size - headers - content_type - readCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 472 bytes - Click Count (0) -
docs/es/docs/tutorial/response-status-code.md
El parámetro `status_code` recibe un número con el código de estado HTTP. /// info | Información `status_code` también puede recibir un `IntEnum`, como por ejemplo el [`http.HTTPStatus`](https://docs.python.org/3/library/http.html#http.HTTPStatus) de Python. /// Esto hará: * Devolver ese código de estado en el response. * Documentarlo como tal en el esquema de OpenAPI (y por lo tanto, en las interfaces de usuario):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 4.3K bytes - Click Count (0)