Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for recommended (0.23 sec)

  1. docs/en/docs/deployment/manually.md

        <div class="termy">
    
        ```console
        $ pip install "uvicorn[standard]"
    
        ---> 100%
        ```
    
        </div>
    
        !!! tip
            By adding the `standard`, Uvicorn will install and use some recommended extra dependencies.
    
            That including `uvloop`, the high-performance drop-in replacement for `asyncio`, that provides the big concurrency performance boost.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/oauth2-jwt.md

    ---> 100%
    ```
    
    </div>
    
    <a href="https://github.com/mpdavis/python-jose" class="external-link" target="_blank">Python-jose</a> requires a cryptographic backend as an extra.
    
    Here we are using the recommended one: <a href="https://cryptography.io/" class="external-link" target="_blank">pyca/cryptography</a>.
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/query-params-str-validations.md

        {!> ../../../docs_src/query_params_str_validations/tutorial009_py310.py!}
        ```
    
    ## πŸ˜› πŸ”’
    
    πŸ”œ ➑️ πŸ’¬ πŸ‘† 🚫 πŸ’– πŸ‘‰ πŸ”’ πŸš«πŸ”œ.
    
    πŸ‘† βœ”οΈ πŸ‘ˆ ⚫️ πŸ“€ βͺ ↩️ πŸ“€ πŸ‘©β€πŸ’» βš™οΈ ⚫️, βœ‹οΈ πŸ‘† πŸ’š 🩺 🎯 🎦 ⚫️ <abbr title="obsolete, recommended not to use it">😒</abbr>.
    
    ‴️ πŸšΆβ€β™€οΈ πŸ”’ `deprecated=True` `Query`:
    
    === "🐍 3️⃣.6️⃣ &amp; πŸ”›"
    
        ```Python hl_lines="18"
        {!> ../../../docs_src/query_params_str_validations/tutorial010.py!}
        ```
    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)
  4. docs/en/docs/tutorial/response-model.md

    This can be used as a quick shortcut if you have only one Pydantic model and want to remove some data from the output.
    
    !!! tip
        But it is still recommended to use the ideas above, using multiple classes, instead of these parameters.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  5. docs/en/docs/alternatives.md

    It is the recommended server for Starlette and **FastAPI**.
    
    !!! check "**FastAPI** recommends it as"
        The main web server to run **FastAPI** applications.
    
        You can combine it with Gunicorn, to have an asynchronous multi-process server.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/events.md

    ```Python hl_lines="22"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    ## Alternative Events (deprecated)
    
    !!! warning
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...or in older code bases you will find:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Advantages of `Annotated`
    
    **Using `Annotated` is recommended** instead of the default value in function parameters, it is **better** for multiple reasons. πŸ€“
    
    The **default** value of the **function parameter** is the **actual default** value, that's more intuitive with Python in general. 😌
    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)
  8. docs/en/docs/release-notes.md

    app = FastAPI(lifespan=lifespan)
    
    
    @app.get("/predict")
    async def predict(x: float):
        result = ml_models["answer_to_everything"](x)
        return {"result": result}
    ```
    
    **Note**: This is the recommended way going forward, instead of using `startup` and `shutdown` events.
    
    Read more about it in the new docs: [Advanced User Guide: Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
    
    ### Docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  9. docs/en/docs/how-to/sql-databases-peewee.md

        If you are just starting, the tutorial [SQL (Relational) Databases](../tutorial/sql-databases.md){.internal-link target=_blank} that uses SQLAlchemy should be enough.
    
        Feel free to skip this.
    
        Peewee is not recommended with FastAPI as it doesn't play well with anything async Python. There are several better alternatives.
    
    !!! info
        These docs assume Pydantic v1.
    
    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)
  10. docs/en/docs/how-to/nosql-databases-couchbase.md

    hon-sdk/2.5/async-programming.html#asyncio-python-3-5" class="external-link" target="_blank">experimental Python <code>await</code> support</a>, we should declare our function with normal `def` instead of `async def`.
    
    Also, Couchbase recommends not using a single `Bucket` object in multiple "<abbr title="A sequence of code being executed by the program, while at the same time, or at intervals, there can be others being executed too.">thread</abbr>s", so, we can just get the bucket directly...
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top