Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 112 for always (0.2 sec)

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

    마치 다음과 같습니다:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    그러나 `item-query`은 유효한 파이썬 변수 이름이 아닙니다.
    
    가장 가까운 것은 `item_query`일 겁니다.
    
    하지만 정확히`item-query`이길 원합니다...
    
    이럴 경우 `alias`를 선언할 수 있으며, 해당 별칭은 매개변수 값을 찾는 데 사용됩니다:
    
    ```Python hl_lines="9"
    {!../../../docs_src/query_params_str_validations/tutorial009.py!}
    ```
    
    ## 매개변수 사용하지 않게 하기
    
    이제는 더이상 이 매개변수를 마음에 들어하지 않는다고 가정해 봅시다.
    
    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)
  2. docs/tr/docs/async.md

    Kasiyer 💁  "Hamburgerler hazır !" 🍔 dediğinde ve görüntülenen numara sizin numaranız olduğunda hemen koşup hamburgerlerinizi almaya çalışmıyorsunuz. Biliyorsunuzki kimse sizin hamburgerlerinizi 🍔 çalmayacak çünkü sıra sizin.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/query-params-str-validations.md

        ```
    
    ## Alias parameters
    
    Imagine that you want the parameter to be `item-query`.
    
    Like in:
    
    ```
    http://127.0.0.1:8000/items/?item-query=foobaritems
    ```
    
    But `item-query` is not a valid Python variable name.
    
    The closest would be `item_query`.
    
    But you still need it to be exactly `item-query`...
    
    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)
  4. docs/pt/docs/features.md

    Por padrão, tudo **"simplesmente funciona"**.
    
    ### Validação
    
    * Validação para a maioria dos (ou todos?) **tipos de dados** do Python, incluindo:
        * objetos JSON (`dict`).
        * arrays JSON (`list`), definindo tipos dos itens.
        * campos String (`str`), definindo tamanho mínimo e máximo.
        * Numbers (`int`, `float`) com valores mínimos e máximos, etc.
    
    * Validação de tipos mais exóticos, como:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  5. docs/en/docs/features.md

    * **No brainfuck**:
        * No new schema definition micro-language to learn.
        * If you know Python types you know how to use Pydantic.
    * Plays nicely with your **<abbr title="Integrated Development Environment, similar to a code editor">IDE</abbr>/<abbr title="A program that checks for code errors">linter</abbr>/brain**:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/index.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15  19  24"
        {!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
        ```
    
    !!! tip
        This is just standard Python, it's called a "type alias", it's actually not specific to **FastAPI**.
    
        But because **FastAPI** is based on the Python standards, including `Annotated`, you can use this trick in your code. 😎
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/dependencies/index.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="15  19  24"
        {!> ../../../docs_src/dependencies/tutorial001_02_an.py!}
        ```
    
    !!! tip "팁"
        이는 그저 표준 파이썬이고 "type alias"라고 부르며 사실 **FastAPI**에 국한되는 것은 아닙니다.
    
        하지만, `Annotated`를 포함하여, **FastAPI**가 파이썬 표준을 기반으로 하고 있기에, 이를 여러분의 코드 트릭으로 사용할 수 있습니다. 😎
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  8. fastapi/openapi/models.py

        schema_: Optional[str] = Field(default=None, alias="$schema")
        vocabulary: Optional[str] = Field(default=None, alias="$vocabulary")
        id: Optional[str] = Field(default=None, alias="$id")
        anchor: Optional[str] = Field(default=None, alias="$anchor")
        dynamicAnchor: Optional[str] = Field(default=None, alias="$dynamicAnchor")
        ref: Optional[str] = Field(default=None, alias="$ref")
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (1)
  9. docs_src/path_params_numeric_validations/tutorial001_an_py310.py

    from fastapi import FastAPI, Path, Query
    
    app = FastAPI()
    
    
    @app.get("/items/{item_id}")
    async def read_items(
        item_id: Annotated[int, Path(title="The ID of the item to get")],
        q: Annotated[str | None, Query(alias="item-query")] = None,
    ):
        results = {"item_id": item_id}
        if q:
            results.update({"q": q})
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 375 bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial010_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(
        q: Annotated[
            str | None,
            Query(
                alias="item-query",
                title="Query string",
                description="Query string for the items to search in the database that have a good match",
                min_length=3,
                max_length=50,
                pattern="^fixedquery$",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 622 bytes
    - Viewed (0)
Back to top