Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 1,080 for Str (0.04 sec)

  1. docs_src/python_types/tutorial012.py

    from typing import Optional
    
    from pydantic import BaseModel
    
    
    class User(BaseModel):
        name: str
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 122 bytes
    - Viewed (0)
  2. docs_src/python_types/tutorial007.py

    from typing import Set, Tuple
    
    
    def process_items(items_t: Tuple[int, int, str], items_s: Set[bytes]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Apr 11 17:20:32 UTC 2020
    - 131 bytes
    - Viewed (0)
  3. docs/em/docs/advanced/security/oauth2-scopes.md

    ๐Ÿ‘ˆ, ๐Ÿ‘ฅ โ„น Pydantic ๐Ÿท `TokenData` โฎ๏ธ ๐Ÿ†• ๐Ÿ  `scopes`.
    
    โš– ๐Ÿ“Š โฎ๏ธ Pydantic ๐Ÿ‘ฅ ๐Ÿ’ช โš’ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ, ๐Ÿ–ผ, โšซ๏ธโ” `list` `str` โฎ๏ธ โ†” & `str` โฎ๏ธ `username`.
    
    โ†ฉ๏ธ, ๐Ÿ–ผ, `dict`, โš–๏ธ ๐Ÿ•ณ ๐Ÿ™†, โšซ๏ธ ๐Ÿ’ช ๐Ÿ’” ๐Ÿˆธ โ˜ โช, โš’ โšซ๏ธ ๐Ÿ’‚โ€โ™‚ โš .
    
    ๐Ÿ‘ฅ โœ” ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ ๐Ÿ‘ฉโ€๐Ÿ’ป โฎ๏ธ ๐Ÿ‘ˆ ๐Ÿ†”, & ๐Ÿšฅ ๐Ÿšซ, ๐Ÿ‘ฅ ๐Ÿคš ๐Ÿ‘ˆ ๐ŸŽ โš  ๐Ÿ‘ฅ โœ โญ.
    
    ```Python hl_lines="46  116-127"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    }
    
    func TestWriter(t *testing.T) {
    	type (
    		testHeader struct { // WriteHeader(hdr) == wantErr
    			hdr     Header
    			wantErr error
    		}
    		testWrite struct { // Write(str) == (wantCnt, wantErr)
    			str     string
    			wantCnt int
    			wantErr error
    		}
    		testReadFrom struct { // ReadFrom(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. tests/test_security_oauth2_authorization_code_bearer.py

    app = FastAPI()
    
    oauth2_scheme = OAuth2AuthorizationCodeBearer(
        authorizationUrl="authorize", tokenUrl="token", auto_error=True
    )
    
    
    @app.get("/items/")
    async def read_items(token: Optional[str] = Security(oauth2_scheme)):
        return {"token": token}
    
    
    client = TestClient(app)
    
    
    def test_no_token():
        response = client.get("/items")
        assert response.status_code == 401, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. docs_src/python_types/tutorial009b.py

    from typing import Union
    
    
    def say_hi(name: Union[str, None] = None):
        if name is not None:
            print(f"Hey {name}!")
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 164 bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/path-params.md

    ## ๅฎš็พฉๆธˆใฟใฎๅ€ค
    
    *ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟ*ใ‚’ๅ—ใ‘ๅ–ใ‚‹ *path operation* ใ‚’ใ‚‚ใกใ€ๆœ‰ๅŠนใช*ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟ*ใฎๅ€คใ‚’ไบ‹ๅ‰ใซๅฎš็พฉใ—ใŸใ„ๅ ดๅˆใฏใ€ๆจ™ๆบ–ใฎPython <abbr title="Enumeration">`Enum`</abbr> ใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚
    
    ### `Enum` ใ‚ฏใƒฉใ‚นใฎไฝœๆˆ
    
    `Enum` ใ‚’ใ‚คใƒณใƒใƒผใƒˆใ—ใ€ `str` ใจ `Enum` ใ‚’็ถ™ๆ‰ฟใ—ใŸใ‚ตใƒ–ใ‚ฏใƒฉใ‚นใ‚’ไฝœๆˆใ—ใพใ™ใ€‚
    
    `str` ใ‚’็ถ™ๆ‰ฟใ™ใ‚‹ใ“ใจใงใ€APIใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใฏๅ€คใŒ `ๆ–‡ๅญ—ๅˆ—` ใงใชใ‘ใ‚Œใฐใ„ใ‘ใชใ„ใ“ใจใ‚’็Ÿฅใ‚Šใ€ๆญฃ็ขบใซใƒฌใƒณใƒ€ใƒชใƒณใ‚ฐใงใใ‚‹ใ‚ˆใ†ใซใชใ‚Šใพใ™ใ€‚
    
    ใใ—ใฆใ€ๅ›บๅฎšๅ€คใฎใ‚ฏใƒฉใ‚นๅฑžๆ€งใ‚’ไฝœใ‚Šใพใ™ใ€‚ใ™ใ‚‹ใจใ€ใใฎๅ€คใŒไฝฟ็”จๅฏ่ƒฝใชๅ€คใจใชใ‚Šใพใ™:
    
    ```Python hl_lines="1 6 7 8 9"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. docs_src/query_params_str_validations/tutorial011_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[list[str] | None, Query()] = None):
        query_items = {"q": q}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 224 bytes
    - Viewed (0)
  9. docs_src/query_params_str_validations/tutorial012.py

    from typing import List
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: List[str] = Query(default=["foo", "bar"])):
        query_items = {"q": q}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 217 bytes
    - Viewed (0)
  10. docs_src/header_params/tutorial002.py

    from typing import Union
    
    from fastapi import FastAPI, Header
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        strange_header: Union[str, None] = Header(default=None, convert_underscores=False),
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 260 bytes
    - Viewed (0)
Back to top