- Sort Score
- Num 10 results
- Language All
Results 281 - 290 of 472 for item_d (0.04 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
fastapi/param_functions.py
from typing import Annotated from fastapi import FastAPI, Path app = FastAPI() @app.get("/items/{item_id}") async def read_items( item_id: Annotated[int, Path(title="The ID of the item to get")], ): return {"item_id": item_id} ``` """ return params.Path( default=default, default_factory=default_factory, alias=alias,Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 63K bytes - Click Count (0) -
fastapi/_compat/v2.py
] field_mapping, definitions = schema_generator.generate_definitions(inputs=inputs) for item_def in cast(dict[str, dict[str, Any]], definitions).values(): if "description" in item_def: item_description = cast(str, item_def["description"]).split("\f")[0] item_def["description"] = item_description new_mapping, new_definitions = _remap_definitions_and_field_mappings(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 19.1K bytes - Click Count (0) -
docs_src/security/tutorial005_py39.py
async def read_users_me(current_user: User = Depends(get_current_active_user)): return current_user @app.get("/users/me/items/") async def read_own_items( current_user: User = Security(get_current_active_user, scopes=["items"]), ): return [{"item_id": "Foo", "owner": current_user.username}] @app.get("/status/") async def read_system_status(current_user: User = Depends(get_current_user)):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 02:57:38 GMT 2025 - 5.3K bytes - Click Count (0) -
tests/test_path.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 20.5K bytes - Click Count (2) -
fastapi/applications.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 176.3K bytes - Click Count (0) -
docs/pt/docs/deployment/docker.md
from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile { #dockerfile } Agora, no mesmo diretório do projeto, crie um arquivo `Dockerfile` com: ```{ .dockerfile .annotate }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 32.1K bytes - Click Count (0) -
docs/ja/docs/python-types.md
/// tip | 豆知識 角括弧内の内部の型は「型パラメータ」と呼ばれています。 この場合、`str`は`List`に渡される型パラメータです。 /// つまり: 変数`items`は`list`であり、このリストの各項目は`str`です。 そうすることで、エディタはリストの項目を処理している間にもサポートを提供できます。 <img src="https://fastapi.tiangolo.com/img/python-types/image05.png"> タイプがなければ、それはほぼ不可能です。 変数`item`はリスト`items`の要素の一つであることに注意してください。 それでも、エディタはそれが`str`であることを知っていて、そのためのサポートを提供しています。 #### `Tuple` と `Set`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 11.6K bytes - Click Count (0) -
docs/pt/docs/python-types.md
/// Isso significa: "a variável `items` é uma `list`, e cada um dos itens desta lista é uma `str`". Ao fazer isso, seu editor pode fornecer suporte mesmo durante o processamento de itens da lista: <img src="/img/python-types/image05.png"> Sem tipos, isso é quase impossível de alcançar. Observe que a variável `item` é um dos elementos da lista `items`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 16.7K bytes - Click Count (0) -
docs/es/docs/python-types.md
Harías lo mismo para declarar `tuple`s y `set`s: {* ../../docs_src/python_types/tutorial007_py39.py hl[1] *} Esto significa: * La variable `items_t` es un `tuple` con 3 ítems, un `int`, otro `int`, y un `str`. * La variable `items_s` es un `set`, y cada uno de sus ítems es del tipo `bytes`. #### Dict { #dict } Para definir un `dict`, pasas 2 parámetros de tipo, separados por comas.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 16.4K bytes - Click Count (1) -
docs/uk/docs/tutorial/path-params-numeric-validations.md
/// ## Оголошення метаданих Ви можете оголошувати всі ті ж параметри, що і для `Query`. Наприклад, щоб оголосити значення метаданих `title` для параметра шляху `item_id`, Ви можете написати: {* ../../docs_src/path_params_numeric_validations/tutorial001_an_py310.py hl[10] *} /// note | ПриміткаCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 20 16:27:21 GMT 2025 - 9.7K bytes - Click Count (0)