Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 30 for advantages (0.06 seconds)

  1. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  2. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

    import java.util.stream.LongStream;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An immutable array of {@code long} values, with an API resembling {@link List}.
     *
     * <p>Advantages compared to {@code long[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22K bytes
    - Click Count (0)
  4. guava/src/com/google/common/primitives/ImmutableIntArray.java

    import java.util.stream.IntStream;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An immutable array of {@code int} values, with an API resembling {@link List}.
     *
     * <p>Advantages compared to {@code int[]}:
     *
     * <ul>
     *   <li>All the many well-known advantages of immutability (read <i>Effective Java</i>, third
     *       edition, Item 17).
     *   <li>Has the value-based (not identity-based) {@link #equals}, {@link #hashCode}, and {@link
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  5. docs/en/docs/history-design-future.md

    ## Requirements { #requirements }
    
    After testing several alternatives, I decided that I was going to use <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">**Pydantic**</a> 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/request-files.md

    Define a file parameter with a type of `UploadFile`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  7. docs/ru/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...или в старой кодовой базе вы увидите:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Преимущества `Annotated` { #advantages-of-annotated }
    
    **Рекомендуется использовать `Annotated`** вместо задания значения по умолчанию в параметрах функции — так **лучше** по нескольким причинам. 🤓
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  8. 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 Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  9. docs/de/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ... oder in älteren Codebasen finden Sie:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Vorzüge von `Annotated` { #advantages-of-annotated }
    
    **Es wird empfohlen, `Annotated` zu verwenden**, anstelle des Defaultwertes in Funktionsparametern, es ist aus mehreren Gründen **besser**. 🤓
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 24 10:28:19 GMT 2025
    - 19.1K bytes
    - Click Count (0)
  10. docs/pt/docs/tutorial/query-params-str-validations.md

    ```Python
    q: Annotated[str, Query()] = "rick"
    ```
    
    ...ou em bases de código mais antigas você encontrará:
    
    ```Python
    q: str = Query(default="rick")
    ```
    
    ### Vantagens de `Annotated` { #advantages-of-annotated }
    
    **Usar `Annotated` é recomendado** em vez do valor padrão nos parâmetros da função, é **melhor** por vários motivos. 🤓
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 18.2K bytes
    - Click Count (0)
Back to Top