Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for passed (0.25 sec)

  1. fastapi/encoders.py

            Doc(
                """
                Pydantic's `include` parameter, passed to Pydantic models to set the
                fields to include.
                """
            ),
        ] = None,
        exclude: Annotated[
            Optional[IncEx],
            Doc(
                """
                Pydantic's `exclude` parameter, passed to Pydantic models to set the
                fields to exclude.
                """
            ),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/bigger-applications.md

    !!! tip
        Note that, much like [dependencies in *path operation decorators*](dependencies/dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, no value will be passed to your *path operation function*.
    
    The end result is that the item paths are now:
    
    * `/items/`
    * `/items/{item_id}`
    
    ...as we intended.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. docs/en/docs/python-types.md

        {!> ../../../docs_src/python_types/tutorial006.py!}
        ```
    
    !!! info
        Those internal types in the square brackets are called "type parameters".
    
        In this case, `str` is the type parameter passed to `List` (or `list` in Python 3.9 and above).
    
    That means: "the variable `items` is a `list`, and each of the items in this list is a `str`".
    
    !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. fastapi/openapi/docs.py

                            authId: oauth2.auth.name,
                            source: "auth",
                            level: "warning",
                            message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
                        });
                    }
    
                    if (qp.code) {
                        delete oauth2.state;
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  5. docs/fr/docs/tutorial/query-params-str-validations.md

    Mais si vous décidez d'apprendre à les utiliser, sachez qu'ensuite vous pouvez les utiliser directement dans **FastAPI**.
    
    ## Valeurs par défaut
    
    De la même façon que vous pouvez passer `None` comme premier argument pour l'utiliser comme valeur par défaut, vous pouvez passer d'autres valeurs.
    
    Disons que vous déclarez le paramètre `q` comme ayant une longueur minimale de `3`, et une valeur par défaut étant `"fixedquery"` :
    
    ```Python hl_lines="7"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:53:21 GMT 2023
    - 9.8K bytes
    - Viewed (0)
  6. docs/fr/docs/tutorial/path-params.md

            }
        ]
    }
    ```
    
    car le paramètre de chemin `item_id` possède comme valeur `"foo"`, qui ne peut pas être convertie en entier (`int`).
    
    La même erreur se produira si vous passez un nombre flottant (`float`) et non un entier, comme ici
    <a href="http://127.0.0.1:8000/items/4.2" class="external-link" target="_blank">http://127.0.0.1:8000/items/4.2</a>.
    
    
    !!! check "vérifier"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

        ```Python hl_lines="19"
        {!> ../../../docs_src/dependencies/tutorial002.py!}
        ```
    
    **FastAPI** calls the `CommonQueryParams` class. This creates an "instance" of that class and the instance will be passed as the parameter `commons` to your function.
    
    ## Type annotation vs `Depends`
    
    Notice how we write `CommonQueryParams` twice in the above code:
    
    === "Python 3.8+"
    
        ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/testing.md

    collected 6 items
    
    ---> 100%
    
    test_main.py <span style="color: green; white-space: pre;">......                            [100%]</span>
    
    <span style="color: green;">================= 1 passed in 0.03s =================</span>
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/security/oauth2-scopes.md

    The *path operation* itself also declares a scope, `"items"`, so this will also be in the list of `security_scopes.scopes` passed to `get_current_user`.
    
    Here's how the hierarchy of dependencies and scopes looks like:
    
    * The *path operation* `read_own_items` has:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  10. docs/fr/docs/async.md

    * de la donnée envoyée depuis votre programme soit reçue par le client à travers le réseau
    * le contenu d'un fichier sur le disque soit lu par le système et passé à votre programme
    * le contenu que votre programme a passé au système soit écrit sur le disque
    * une opération effectuée à distance par une API se termine
    * une opération en BDD se termine
    * une requête à une BDD renvoie un résultat
    * etc.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top