Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 320 for str (0.12 sec)

  1. docs/en/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="7"
        {!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial001.py!}
        ```
    
    === "๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ & ๐Ÿ”›"
    
        ```Python hl_lines="7"
        {!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!}
        ```
    
    ๐Ÿ”ข ๐Ÿ”ข `q` ๐Ÿ†Ž `Union[str, None]` (โš–๏ธ `str | None` ๐Ÿ 3๏ธโƒฃ.1๏ธโƒฃ0๏ธโƒฃ), ๐Ÿ‘ˆ โ›“ ๐Ÿ‘ˆ โšซ๏ธ ๐Ÿ†Ž `str` โœ‹๏ธ ๐Ÿ’ช `None`, & ๐Ÿ‘, ๐Ÿ”ข ๐Ÿ’ฒ `None`, FastAPI ๐Ÿ”œ ๐Ÿ’ญ โšซ๏ธ ๐Ÿšซ โœ”.
    
    !!! note
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  3. docs/ko/docs/tutorial/query-params-str-validations.md

    ์ด ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์„ ์˜ˆ๋กœ ๋“ค์–ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial001.py!}
    ```
    
    ์ฟผ๋ฆฌ ๋งค๊ฐœ๋ณ€์ˆ˜ `q`๋Š” `Optional[str]` ์ž๋ฃŒํ˜•์ž…๋‹ˆ๋‹ค. ์ฆ‰, `str` ์ž๋ฃŒํ˜•์ด์ง€๋งŒ `None` ์—ญ์‹œ ๋  ์ˆ˜ ์žˆ์Œ์„ ๋œปํ•˜๊ณ , ์‹ค์ œ๋กœ ๊ธฐ๋ณธ๊ฐ’์€ `None`์ด๊ธฐ ๋•Œ๋ฌธ์— FastAPI๋Š” ์ด ๋งค๊ฐœ๋ณ€์ˆ˜๊ฐ€ ํ•„์ˆ˜๊ฐ€ ์•„๋‹ˆ๋ผ๋Š” ๊ฒƒ์„ ์••๋‹ˆ๋‹ค.
    
    !!! note "์ฐธ๊ณ "
        FastAPI๋Š” `q`์˜ ๊ธฐ๋ณธ๊ฐ’์ด `= None`์ด๊ธฐ ๋•Œ๋ฌธ์— ํ•„์ˆ˜๊ฐ€ ์•„๋‹˜์„ ์••๋‹ˆ๋‹ค.
    
        `Optional[str]`์— ์žˆ๋Š” `Optional`์€ FastAPI๊ฐ€ ์‚ฌ์šฉํ•˜๋Š”๊ฒŒ ์•„๋‹ˆ์ง€๋งŒ, ํŽธ์ง‘๊ธฐ์—๊ฒŒ ๋” ๋‚˜์€ ์ง€์›๊ณผ ์˜ค๋ฅ˜ ํƒ์ง€๋ฅผ ์ œ๊ณตํ•˜๊ฒŒ ํ•ด์ค๋‹ˆ๋‹ค.
    
    ## ์ถ”๊ฐ€ ๊ฒ€์ฆ
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Feb 11 13:48:31 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="7"
        {!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/query-params-str-validations.md

        ```Python hl_lines="7"
        {!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="9"
        {!> ../../../docs_src/query_params_str_validations/tutorial001.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/query-params-str-validations.md

    ```Python hl_lines="7"
    {!../../../docs_src/query_params_str_validations/tutorial005.py!}
    ```
    
    !!! note
        ๅ…ทๆœ‰้ป˜่ฎคๅ€ผ่ฟ˜ไผšไฝฟ่ฏฅๅ‚ๆ•ฐๆˆไธบๅฏ้€‰ๅ‚ๆ•ฐใ€‚
    
    ## ๅฃฐๆ˜Žไธบๅฟ…้œ€ๅ‚ๆ•ฐ
    
    ๅฝ“ๆˆ‘ไปฌไธ้œ€่ฆๅฃฐๆ˜Ž้ขๅค–็š„ๆ ก้ชŒๆˆ–ๅ…ƒๆ•ฐๆฎๆ—ถ๏ผŒๅช้œ€ไธๅฃฐๆ˜Ž้ป˜่ฎคๅ€ผๅฐฑๅฏไปฅไฝฟ `q` ๅ‚ๆ•ฐๆˆไธบๅฟ…้œ€ๅ‚ๆ•ฐ๏ผŒไพ‹ๅฆ‚๏ผš
    
    ```Python
    q: str
    ```
    
    ไปฃๆ›ฟ๏ผš
    
    ```Python
    q: Union[str, None] = None
    ```
    
    ไฝ†ๆ˜ฏ็Žฐๅœจๆˆ‘ไปฌๆญฃๅœจ็”จ `Query` ๅฃฐๆ˜Žๅฎƒ๏ผŒไพ‹ๅฆ‚๏ผš
    
    ```Python
    q: Union[str, None] = Query(default=None, min_length=3)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  7. fastapi/params.py

            annotation: Optional[Any] = None,
            alias: Optional[str] = None,
            alias_priority: Union[int, None] = _Unset,
            # TODO: update when deprecating Pydantic v1, import these types
            # validation_alias: str | AliasPath | AliasChoices | None
            validation_alias: Union[str, None] = None,
            serialization_alias: Union[str, None] = None,
            title: Optional[str] = None,
            description: Optional[str] = None,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 27.5K bytes
    - Viewed (1)
  8. fastapi/param_functions.py

                """
            ),
        ] = _Unset,
        # TODO: update when deprecating Pydantic v1, import these types
        # validation_alias: str | AliasPath | AliasChoices | None
        validation_alias: Annotated[
            Union[str, None],
            Doc(
                """
                'Whitelist' validation step. The parameter field will be the single one
                allowed by the alias or set of aliases defined.
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 62.5K bytes
    - Viewed (0)
  9. fastapi/security/oauth2.py

            self,
            *,
            flows: Annotated[
                Union[OAuthFlowsModel, Dict[str, Dict[str, Any]]],
                Doc(
                    """
                    The dictionary of OAuth2 flows.
                    """
                ),
            ] = OAuthFlowsModel(),
            scheme_name: Annotated[
                Optional[str],
                Doc(
                    """
                    Security scheme name.
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  10. docs_src/security/tutorial004.py

    }
    
    
    class Token(BaseModel):
        access_token: str
        token_type: str
    
    
    class TokenData(BaseModel):
        username: Union[str, None] = None
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
Back to top