- Sort Score
- Num 10 results
- Language All
Results 121 - 130 of 1,087 for tstr (0.02 seconds)
-
docs/en/docs/tutorial/metadata.md
| Parameter | Type | Description | |------------|------|-------------| | `title` | `str` | The title of the API. | | `summary` | `str` | A short summary of the API. <small>Available since OpenAPI 3.1.0, FastAPI 0.99.0.</small> | | `description` | `str` | A short description of the API. It can use Markdown. |
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 5.9K bytes - Click Count (0) -
docs/ru/docs/tutorial/extra-data-types.md
* В запросах и ответах будет представлен как `str`. * `datetime.datetime`: * Встроенный в Python `datetime.datetime`. * В запросах и ответах будет представлен как `str` в формате ISO 8601, например: `2008-09-15T15:53:00+05:00`. * `datetime.date`: * Встроенный в Python `datetime.date`. * В запросах и ответах будет представлен как `str` в формате ISO 8601, например: `2008-09-15`. * `datetime.time`:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 30 11:24:39 GMT 2025 - 4.4K bytes - Click Count (0) -
docs_src/extra_models/tutorial002_py39.py
app = FastAPI() class UserBase(BaseModel): username: str email: EmailStr full_name: Union[str, None] = None class UserIn(UserBase): password: str class UserOut(UserBase): pass class UserInDB(UserBase): hashed_password: str def fake_password_hasher(raw_password: str): return "supersecret" + raw_password
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 830 bytes - Click Count (0) -
docs_src/body_nested_models/tutorial005_py310.py
from fastapi import FastAPI from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: set[str] = set() image: Image | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 468 bytes - Click Count (0) -
docs_src/dependencies/tutorial005_an_py39.py
app = FastAPI() def query_extractor(q: Union[str, None] = None): return q def query_or_cookie_extractor( q: Annotated[str, Depends(query_extractor)], last_query: Annotated[Union[str, None], Cookie()] = None, ): if not q: return last_query return q @app.get("/items/") async def read_query( query_or_default: Annotated[str, Depends(query_or_cookie_extractor)], ):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 529 bytes - Click Count (0) -
tests/test_multipart_installation.py
with pytest.raises(RuntimeError, match=multipart_incorrect_install_error): app = FastAPI() @app.post("/") async def root(username: str = Form(), password: str = Form()): return username # pragma: nocover def test_incorrect_multipart_installed_form_file(monkeypatch): monkeypatch.setattr("python_multipart.__version__", "0.0.12")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Oct 27 21:46:26 GMT 2024 - 5.7K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial003_py310.py
from fastapi import Body, FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, user: User, importance: int = Body()):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 504 bytes - Click Count (0) -
docs_src/body_nested_models/tutorial005_py39.py
from pydantic import BaseModel, HttpUrl app = FastAPI() class Image(BaseModel): url: HttpUrl name: str class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() image: Union[Image, None] = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat May 14 11:59:59 GMT 2022 - 512 bytes - Click Count (0) -
docs_src/response_model/tutorial004_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float = 10.5 tags: list[str] = [] items = { "foo": {"name": "Foo", "price": 50.2}, "bar": {"name": "Bar", "description": "The bartenders", "price": 62, "tax": 20.2},
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 595 bytes - Click Count (0) -
scripts/translate.py
out_path = Path(str(path).replace(str(en_docs_path), str(lang_docs_path))) return out_path def generate_en_path(*, lang: str, path: Path) -> Path: en_docs_path = Path("docs/en/docs") assert not str(path).startswith(str(en_docs_path)), ( f"Path must not be inside {en_docs_path}" ) lang_docs_path = Path(f"docs/{lang}/docs") out_path = Path(str(path).replace(str(lang_docs_path), str(en_docs_path)))
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 19:05:53 GMT 2025 - 34.1K bytes - Click Count (0)