Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 72 for advantages (0.12 seconds)

  1. docs/en/docs/how-to/graphql.md

    You can combine normal FastAPI *path operations* with GraphQL on the same application.
    
    /// tip
    
    **GraphQL** solves some very specific use cases.
    
    It has **advantages** and **disadvantages** when compared to common **web APIs**.
    
    Make sure you evaluate if the **benefits** for your use case compensate the **drawbacks**. 🤓
    
    ///
    
    ## GraphQL Libraries { #graphql-libraries }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  2. 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` { #advantages-of-annotated }
    
    **Using `Annotated` is recommended** instead of the default value in function parameters, it is **better** for multiple reasons. 🤓
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  3. docs/en/docs/history-design-future.md

    ## Requirements { #requirements }
    
    After testing several alternatives, I decided that I was going to use [**Pydantic**](https://docs.pydantic.dev/) for its advantages.
    
    Then I contributed to it, to make it fully compliant with JSON Schema, to support different ways to define constraint declarations, and to improve editor support (type checks, autocompletion) based on the tests in several editors.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/request-files.md

    Define a file parameter with a type of `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py310.py hl[14] *}
    
    Using `UploadFile` has several advantages over `bytes`:
    
    * You don't have to use `File()` in the default value of the parameter.
    * It uses a "spooled" file:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7K bytes
    - Click Count (0)
  5. docs/en/docs/python-types.md

    This is just a **quick tutorial / refresher** about Python type hints. It covers only the minimum necessary to use them with **FastAPI**... which is actually very little.
    
    **FastAPI** is all based on these type hints, they give it many advantages and benefits.
    
    But even if you never use **FastAPI**, you would benefit from learning a bit about them.
    
    /// note
    
    If you are a Python expert, and you already know everything about type hints, skip to the next chapter.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/query-params-str-validations.md

    따라서 (가능하면) 다음과 같이 사용합니다:
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...또는 오래된 코드베이스에서는 다음과 같은 코드를 찾게 될 것입니다:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### `Annotated`의 장점 { #advantages-of-annotated }
    
    함수 매개변수의 기본값 방식 대신 **`Annotated`를 사용하는 것을 권장**합니다. 여러 이유로 **더 좋기** 때문입니다. 🤓
    
    **함수 매개변수**의 **기본값**이 **실제 기본값**이 되므로, 전반적으로 Python에 더 직관적입니다. 😌
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  7. docs/en/docs/deployment/docker.md

    Using Linux containers has several advantages including **security**, **replicability**, **simplicity**, and others.
    
    /// tip
    
    In a hurry and already know this stuff? Jump to the [`Dockerfile` below 👇](#build-a-docker-image-for-fastapi).
    
    ///
    
    <details>
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 28.3K bytes
    - Click Count (1)
  8. docs/zh/docs/tutorial/query-params-str-validations.md

    因此,你应该这样用(推荐):
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...或者在旧代码库中你会见到:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### `Annotated` 的优势 { #advantages-of-annotated }
    
    **推荐使用 `Annotated`**,而不是把 `Query` 放在函数参数的默认值里,这样做在多方面都**更好**。🤓
    
    函数参数的**默认值**就是**真正的默认值**,这与 Python 的直觉更一致。😌
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  9. docs/ja/docs/tutorial/query-params-str-validations.md

    そのため、(できれば)次のようにします:
    
    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...または、古いコードベースでは次のようなものが見つかるでしょう:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### `Annotated` の利点 { #advantages-of-annotated }
    
    関数パラメータのデフォルト値スタイルではなく、**`Annotated` を使うことが推奨** されます。複数の理由で **より良い** からです。 🤓
    
    **関数パラメータ** の **デフォルト値** は **実際のデフォルト値** であり、Python 全般としてより直感的です。 😌
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 20.3K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ... ou dans des bases de code plus anciennes, vous trouverez :
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Avantages de `Annotated` { #advantages-of-annotated }
    
    **L’utilisation de `Annotated` est recommandée** plutôt que la valeur par défaut dans les paramètres de fonction, c’est **mieux** pour plusieurs raisons. 🤓
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 19K bytes
    - Click Count (0)
Back to Top