Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 1,087 for tstr (0.15 sec)

  1. 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");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. 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:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. 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
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 705 bytes
    - Viewed (0)
  4. 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":
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 700 bytes
    - Viewed (0)
  5. 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
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 638 bytes
    - Viewed (0)
  6. 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)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.4K bytes
    - Viewed (1)
  7. 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
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 1K bytes
    - Viewed (0)
  8. 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:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 712 bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

         *
         * @see jcifs.SmbResourceLocator#getParent()
         */
        @Override
        public String getParent() {
            String str = this.url.getAuthority();
    
            if (str != null && !str.isEmpty()) {
                final StringBuilder sb = new StringBuilder("smb://");
    
                sb.append(str);
    
                final String urlpath = getURLPath();
                if (urlpath.length() > 1) {
                    sb.append(urlpath);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/encoder.md

    ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์ด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋Š” Pydantic ๋ชจ๋ธ(์†์„ฑ์ด ์žˆ๋Š” ๊ฐ์ฒด)์„ ๋ฐ›์ง€ ์•Š๊ณ , `dict` ๋งŒ์„ ๋ฐ›์Šต๋‹ˆ๋‹ค.
    
    ์ด๋ฅผ ์œ„ํ•ด `jsonable_encoder` ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    
    Pydantic ๋ชจ๋ธ๊ณผ ๊ฐ™์€ ๊ฐ์ฒด๋ฅผ ๋ฐ›๊ณ  JSON ํ˜ธํ™˜ ๊ฐ€๋Šฅํ•œ ๋ฒ„์ „์œผ๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค:
    
    {* ../../docs_src/encoder/tutorial001.py hl[5,22] *}
    
    ์ด ์˜ˆ์‹œ๋Š” Pydantic ๋ชจ๋ธ์„ `dict`๋กœ, `datetime` ํ˜•์‹์„ `str`๋กœ ๋ณ€ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top