Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for inspire (0.2 sec)

  1. docs/en/docs/tutorial/body-nested-models.md

        ```Python hl_lines="15"
        {!> ../../../docs_src/body_nested_models/tutorial008.py!}
        ```
    
    ## Editor support everywhere
    
    And you get editor support everywhere.
    
    Even for items inside of lists:
    
    <img src="/img/tutorial/body-nested-models/image01.png">
    
    You couldn't get this kind of editor support if you were working directly with `dict` instead of Pydantic models.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. docs/zh/docs/features.md

    编写带有类型标注的标准 Python:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    可以像这样来使用:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. docs/em/docs/features.md

    👆 ✍ 🐩 🐍 ⏮️ 🆎:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # Declare a variable as a str
    # and get editor support inside the function
    def main(user_id: str):
        return user_id
    
    
    # A Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    👈 💪 ⤴️ ⚙️ 💖:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  4. docs/fr/docs/alternatives.md

    !!! check "A inspiré **FastAPI** à"
    Hug a inspiré certaines parties d'APIStar, et était l'un des outils que je trouvais les plus prometteurs, à côté d'APIStar.
    
        Hug a contribué à inspirer **FastAPI** pour utiliser les type hints Python
        pour déclarer les paramètres, et pour générer automatiquement un schéma définissant l'API.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 27.5K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/async-tests.md

    The `TestClient` does some magic inside to call the asynchronous FastAPI application in your normal `def` test functions, using standard pytest. But that magic doesn't work anymore when we're using it inside asynchronous functions. By running our tests asynchronously, we can no longer use the `TestClient` inside our test functions.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jan 13 12:07:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/custom-response.md

    But you can also declare the `Response` that you want to be used, in the *path operation decorator*.
    
    The contents that you return from your *path operation function* will be put inside of that `Response`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  7. docs/en/docs/async.md

        return burgers
    ```
    
    ### More technical details
    
    You might have noticed that `await` can only be used inside of functions defined with `async def`.
    
    But at the same time, functions defined with `async def` have to be "awaited". So, functions with `async def` can only be called inside of functions defined with `async def` too.
    
    So, about the egg and the chicken, how do you call the first `async` function?
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/extending-openapi.md

    ```Python hl_lines="1  4  7-9"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Generate the OpenAPI schema
    
    Then, use the same utility function to generate the OpenAPI schema, inside a `custom_openapi()` function:
    
    ```Python hl_lines="2  15-21"
    {!../../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Modify the OpenAPI schema
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/extra-data-types.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="1  2  12-16"
        {!> ../../../docs_src/extra_data_types/tutorial001.py!}
        ```
    
    Note that the parameters inside the function have their natural data type, and you can, for example, perform normal date manipulations, like:
    
    === "Python 3.10+"
    
        ```Python hl_lines="18-19"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/sql-databases-peewee.md

    ```
    
    To set a value used in the current "context" (e.g. for the current request) use:
    
    ```Python
    some_var.set("new value")
    ```
    
    To get a value anywhere inside of the context (e.g. in any part handling the current request) use:
    
    ```Python
    some_var.get()
    ```
    
    ### Set context variables in the `async` dependency `reset_db_state()`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
Back to top