- Sort Score
- Num 10 results
- Language All
Results 441 - 450 of 1,087 for tstr (0.04 seconds)
-
docs/de/docs/tutorial/path-params.md
### Eine `Enum`-Klasse erstellen { #create-an-enum-class } Importieren Sie `Enum` und erstellen Sie eine Unterklasse, die von `str` und `Enum` erbt. Indem Sie von `str` erben, weiร die API-Dokumentation, dass die Werte vom Typ `str` sein mรผssen, und wird in der Lage sein, korrekt zu rendern. Erstellen Sie dann Klassen-Attribute mit festgelegten Werten, welches die erlaubten Werte sein werden:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.5K bytes - Click Count (0) -
docs_src/additional_status_codes/tutorial001_an_py39.py
app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: Annotated[Union[str, None], Body()] = None, size: Annotated[Union[int, None], Body()] = None, ): if item_id in items: item = items[item_id] item["name"] = name item["size"] = size
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 705 bytes - Click Count (0) -
docs_src/dependencies/tutorial008c_an_py39.py
def get_username(): try: yield "Rick" except InternalError: print("Oops, we didn't raise again, Britney ๐ฑ") @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus":
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 700 bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java
write.setParam(0x1234, 100L, 50, new byte[10], 0, 10); String str = write.toString(); assertNotNull(str); assertTrue(str.contains("SmbComWrite"), "Should contain class name"); assertTrue(str.contains("fid="), "Should contain fid"); assertTrue(str.contains("count="), "Should contain count"); assertTrue(str.contains("offset="), "Should contain offset"); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
docs_src/path_operation_configuration/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 | None = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information: - **name**: each item must have a name
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 638 bytes - Click Count (0) -
tests/test_dependency_security_overrides.py
return "alice", required_scopes.scopes def get_data(): return [1, 2, 3] def get_data_override(): return [3, 4, 5] @app.get("/user") def read_user( user_data: tuple[str, list[str]] = Security(get_user, scopes=["foo", "bar"]), data: list[int] = Depends(get_data), ): return {"user": user_data[0], "scopes": user_data[1], "data": data} client = TestClient(app)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.4K bytes - Click Count (1) -
tests/test_tutorial/test_settings/test_app02.py
return mod_path @pytest.fixture(name="main_mod") def get_main_mod(mod_path: str) -> ModuleType: main_mod = importlib.import_module(f"{mod_path}.main") return main_mod @pytest.fixture(name="test_main_mod") def get_test_main_mod(mod_path: str) -> ModuleType: test_main_mod = importlib.import_module(f"{mod_path}.test_main") return test_main_mod
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1K bytes - Click Count (0) -
docs/ko/docs/tutorial/encoder.md
๊ฐ์ ๋ฐฉ์์ผ๋ก ์ด ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ Pydantic ๋ชจ๋ธ(์์ฑ์ด ์๋ ๊ฐ์ฒด)์ ๋ฐ์ง ์๊ณ , `dict` ๋ง์ ๋ฐ์ต๋๋ค. ์ด๋ฅผ ์ํด `jsonable_encoder` ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค. Pydantic ๋ชจ๋ธ๊ณผ ๊ฐ์ ๊ฐ์ฒด๋ฅผ ๋ฐ๊ณ JSON ํธํ ๊ฐ๋ฅํ ๋ฒ์ ์ผ๋ก ๋ฐํํฉ๋๋ค: {* ../../docs_src/encoder/tutorial001.py hl[5,22] *} ์ด ์์๋ Pydantic ๋ชจ๋ธ์ `dict`๋ก, `datetime` ํ์์ `str`๋ก ๋ณํํฉ๋๋ค.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 18 02:25:44 GMT 2024 - 1.9K bytes - Click Count (0) -
docs_src/query_params_str_validations/tutorial015_an_py310.py
"isbn-9781439512982": "Isaac Asimov: The Complete Stories, Vol. 2", } def check_valid_id(id: str): if not id.startswith(("isbn-", "imdb-")): raise ValueError('Invalid ID format, it must start with "isbn-" or "imdb-"') return id @app.get("/items/") async def read_items( id: Annotated[str | None, AfterValidator(check_valid_id)] = None, ): if id: item = data.get(id) else:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 01 22:02:35 GMT 2025 - 768 bytes - Click Count (0) -
docs_src/path_operation_advanced_configuration/tutorial004_py39.py
from typing import Union from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = None price: float tax: Union[float, None] = None tags: set[str] = set() @app.post("/items/", response_model=Item, summary="Create an item") async def create_item(item: Item): """ Create an item with all the information:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 712 bytes - Click Count (0)