- Sort Score
- Num 10 results
- Language All
Results 241 - 250 of 375 for Dict (0.02 seconds)
-
fastapi/datastructures.py
return cast(UploadFile, __input_value) @classmethod def __get_pydantic_json_schema__( cls, core_schema: Mapping[str, Any], handler: GetJsonSchemaHandler ) -> dict[str, Any]: return {"type": "string", "format": "binary"} @classmethod def __get_pydantic_core_schema__( cls, source: type[Any], handler: Callable[[Any], Mapping[str, Any]]
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/en/docs/advanced/templates.md
### Template Context Values { #template-context-values } In the HTML that contains: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...it will show the `id` taken from the "context" `dict` you passed: ```Python {"id": id} ``` For example, with an ID of `42`, this would render: ```html Item ID: 42 ``` ### Template `url_for` Arguments { #template-url-for-arguments }Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.5K bytes - Click Count (0) -
docs_src/security/tutorial005_py39.py
user = get_user(fake_db, username) if not user: return False if not verify_password(password, user.hashed_password): return False return user def create_access_token(data: dict, expires_delta: Union[timedelta, None] = None): to_encode = data.copy() if expires_delta: expire = datetime.now(timezone.utc) + expires_delta else:
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) -
docs/ko/docs/tutorial/body.md
{* ../../docs_src/body/tutorial001_py310.py hl[5:9] *} 쿼리 매개변수를 선언할 때와 같이, 모델 어트리뷰트가 기본 값을 가지고 있어도 이는 필수가 아닙니다. 그외에는 필수입니다. 그저 `None`을 사용하여 선택적으로 만들 수 있습니다. 예를 들면, 위의 이 모델은 JSON "`object`" (혹은 파이썬 `dict`)을 다음과 같이 선언합니다: ```JSON { "name": "Foo", "description": "선택적인 설명란", "price": 45.2, "tax": 3.5 } ```Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 7.8K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/index.md
* Um parâmetro de consulta opcional `skip` do tipo `int`, e igual a `0` por padrão. * Um parâmetro de consulta opcional `limit` do tipo `int`, e igual a `100` por padrão. E então retorna um `dict` contendo esses valores. /// info | Informação FastAPI passou a suportar a notação `Annotated` (e começou a recomendá-la) na versão 0.95.0.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 10.7K bytes - Click Count (0) -
tests/test_dependency_yield_scope_websockets.py
from typing import Annotated, Any import pytest from fastapi import Depends, FastAPI, WebSocket from fastapi.exceptions import FastAPIError from fastapi.testclient import TestClient global_context: ContextVar[dict[str, Any]] = ContextVar("global_context", default={}) # noqa: B039 class Session: def __init__(self) -> None: self.open = True async def dep_session() -> Any: s = Session() yield s
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 6K bytes - Click Count (0) -
scripts/mkdocs_hooks.py
def resolve_files(*, items: list[Any], files: Files, config: MkDocsConfig) -> None: for item in items: if isinstance(item, str): resolve_file(item=item, files=files, config=config) elif isinstance(item, dict): assert len(item) == 1 values = list(item.values()) if not values: continue if isinstance(values[0], str):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/pt/docs/how-to/custom-request-and-route.md
{* ../../docs_src/custom_request_and_route/tutorial001_an_py310.py hl[19:27] *} /// note | Detalhes Técnicos Um `Request` tem um atributo `request.scope`, que é apenas um `dict` do Python contendo os metadados relacionados à requisição. Um `Request` também tem um `request.receive`, que é uma função para "receber" o corpo da requisição.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Dec 16 20:32:40 GMT 2025 - 5.1K bytes - Click Count (0) -
docs/ko/docs/advanced/templates.md
```jinja hl_lines="7" {!../../docs_src/templates/templates/item.html!} ``` ### 템플릿 컨텍스트 값 다음과 같은 HTML에서: {% raw %} ```jinja Item ID: {{ id }} ``` {% endraw %} ...이는 전달한 "컨텍스트" `dict`에서 가져온 `id`를 표시합니다: ```Python {"id": id} ``` 예를 들어, ID가 `42`일 경우, 이는 다음과 같이 렌더링됩니다: ```html Item ID: 42 ``` ### 템플릿 `url_for` 인수Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Oct 11 17:48:49 GMT 2025 - 3.7K bytes - Click Count (0) -
docs/en/docs/tutorial/security/get-current-user.md
Do you want to have an `id` and `email` and not have any `username` in your model? Sure. You can use these same tools. Do you want to just have a `str`? Or just a `dict`? Or a database class model instance directly? It all works the same way. You actually don't have users that log in to your application but robots, bots, or other systems, that have just an access token? Again, it all works the same.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 4K bytes - Click Count (0)