Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for dependant (0.34 sec)

  1. fastapi/dependencies/utils.py

    
    def get_flat_dependant(
        dependant: Dependant,
        *,
        skip_repeats: bool = False,
        visited: Optional[List[CacheKey]] = None,
    ) -> Dependant:
        if visited is None:
            visited = []
        visited.append(dependant.cache_key)
    
        flat_dependant = Dependant(
            path_params=dependant.path_params.copy(),
            query_params=dependant.query_params.copy(),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

        *,
        dependant: Dependant,
        schema_generator: GenerateJsonSchema,
        model_name_map: ModelNameMap,
        field_mapping: Dict[
            Tuple[ModelField, Literal["validation", "serialization"]], JsonSchemaValue
        ],
        separate_input_output_schemas: bool = True,
    ) -> List[Dict[str, Any]]:
        parameters = []
        flat_dependant = get_flat_dependant(dependant, skip_repeats=True)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  3. fastapi/dependencies/models.py

    
    @dataclass
    class Dependant:
        path_params: List[ModelField] = field(default_factory=list)
        query_params: List[ModelField] = field(default_factory=list)
        header_params: List[ModelField] = field(default_factory=list)
        cookie_params: List[ModelField] = field(default_factory=list)
        body_params: List[ModelField] = field(default_factory=list)
        dependencies: List["Dependant"] = field(default_factory=list)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 31 20:19:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/dependencies/sub-dependencies.md

    ## Zweite Abhängigkeit, „Dependable“ und „Dependant“
    
    Dann können Sie eine weitere Abhängigkeitsfunktion (ein „Dependable“) erstellen, die gleichzeitig eine eigene Abhängigkeit deklariert (also auch ein „Dependant“ ist):
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="13"
    {!> ../../docs_src/dependencies/tutorial005_an_py310.py!}
    ```
    
    ////
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. fastapi/routing.py

    
    async def run_endpoint_function(
        *, dependant: Dependant, values: Dict[str, Any], is_coroutine: bool
    ) -> Any:
        # Only called by get_request_handler. Has been split into its own function to
        # facilitate profiling endpoints, since inner functions are harder to profile.
        assert dependant.call is not None, "dependant.call must be a function"
    
        if is_coroutine:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:44:57 UTC 2024
    - 172.1K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/sub-dependencies.md

    This is quite simple (not very useful), but will help us focus on how the sub-dependencies work.
    
    ## Second dependency, "dependable" and "dependant"
    
    Then you can create another dependency function (a "dependable") that at the same time declares a dependency of its own (so it is a "dependant" too):
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="13"
    {!> ../../docs_src/dependencies/tutorial005_an_py310.py!}
    ```
    
    ////
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/dependencies/index.md

    ///
    
    ### Import `Depends`
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[3] *}
    
    ### Declare the dependency, in the "dependant"
    
    The same way you use `Body`, `Query`, etc. with your *path operation function* parameters, use `Depends` with a new parameter:
    
    {* ../../docs_src/dependencies/tutorial001_an_py310.py hl[13,18] *}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:18:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/index.md

    ///
    
    ```Python hl_lines="3"
    {!> ../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ////
    
    ### Deklarieren der Abhängigkeit im <abbr title="Das Abhängige, der Verwender der Abhängigkeit">„Dependant“</abbr>
    
    So wie auch `Body`, `Query`, usw., verwenden Sie `Depends` mit den Parametern Ihrer *Pfadoperation-Funktion*:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="13  18"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/dependencies/index.md

    * オプショナルのクエリパラメータ`limit`は`int`で、デフォルトは`100`です。
    
    そして、これらの値を含む`dict`を返します。
    
    ### `Depends`のインポート
    
    ```Python hl_lines="3"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    ### "dependant"での依存関係の宣言
    
    *path operation関数*のパラメータに`Body`や`Query`などを使用するのと同じように、新しいパラメータに`Depends`を使用することができます:
    
    ```Python hl_lines="13  18"
    {!../../docs_src/dependencies/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. docs/fr/docs/async.md

    <img src="/img/async/concurrent-burgers/concurrent-burgers-04.png" class="illustration">
    
    Pendant que vous attendez, vous allez choisir une table avec votre crush 😍, vous discutez avec votre crush 😍 pendant un long moment (les burgers étant "magnifiques" ils sont très longs à préparer ✨🍔✨).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top