Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 449 for kwargs (0.04 sec)

  1. fastapi/params.py

                        "json_schema_extra": current_json_schema_extra,
                    }
                )
                kwargs["pattern"] = pattern or regex
            else:
                kwargs["regex"] = pattern or regex
                kwargs.update(**current_json_schema_extra)
            use_kwargs = {k: v for k, v in kwargs.items() if v is not _Unset}
    
            super().__init__(**use_kwargs)
    
        def __repr__(self) -> str:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 06 18:06:20 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  2. fastapi/utils.py

                annotation=type_, default=default, alias=alias
            )
        else:
            field_info = field_info or FieldInfo()
        kwargs = {"name": name, "field_info": field_info}
        if PYDANTIC_V2:
            kwargs.update({"mode": mode})
        else:
            kwargs.update(
                {
                    "type_": type_,
                    "class_validators": class_validators,
                    "default": default,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 31 23:46:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. fastapi/background.py

                ),
            ],
            *args: P.args,
            **kwargs: P.kwargs,
        ) -> None:
            """
            Add a function to be called in the background after the response is sent.
    
            Read more about it in the
            [FastAPI docs for Background Tasks](https://fastapi.tiangolo.com/tutorial/background-tasks/).
            """
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. tests/test_ws_router.py

    class CustomError(Exception):
        pass
    
    
    @router.websocket("/custom_error/")
    async def router_ws_custom_error(websocket: WebSocket):
        raise CustomError()
    
    
    def make_app(app=None, **kwargs):
        app = app or FastAPI(**kwargs)
        app.include_router(router)
        app.include_router(prefix_router, prefix="/prefix")
        app.include_router(native_prefix_route)
        return app
    
    
    app = make_app(app)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. fastapi/_compat.py

        def _model_rebuild(model: Type[BaseModel]) -> None:
            model.model_rebuild()
    
        def _model_dump(
            model: BaseModel, mode: Literal["json", "python"] = "json", **kwargs: Any
        ) -> Any:
            return model.model_dump(mode=mode, **kwargs)
    
        def _get_model_config(model: BaseModel) -> Any:
            return model.model_config
    
        def get_schema_from_model_field(
            *,
            field: ModelField,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 12 09:36:32 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. scripts/mkdocs_hooks.py

        langs = [file.stem for file in material_langs_path.glob("*.html")]
        return langs
    
    
    class EnFile(File):
        pass
    
    
    def on_config(config: MkDocsConfig, **kwargs: Any) -> MkDocsConfig:
        available_langs = get_mkdocs_material_langs()
        dir_path = Path(config.docs_dir)
        lang = dir_path.parent.name
        if lang in available_langs:
            config.theme["language"] = lang
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 21:20:31 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. fastapi/param_functions.py

            Any,
            Doc(
                """
                Include extra fields used by the JSON Schema.
                """
            ),
            deprecated(
                """
                The `extra` kwargs is deprecated. Use `json_schema_extra` instead.
                """
            ),
        ],
    ) -> Any:
        """
        Declare a path parameter for a *path operation*.
    
        Read more about it in the
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/path-params-numeric-validations.md

    ๐Ÿšถโ€โ™€๏ธ `*`, ๐Ÿฅ‡ ๐Ÿ”ข ๐Ÿ”ข.
    
    ๐Ÿ ๐Ÿ† ๐Ÿšซ ๐Ÿ•ณ โฎ๏ธ ๐Ÿ‘ˆ `*`, โœ‹๏ธ โšซ๏ธ ๐Ÿ”œ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐ŸŒ ๐Ÿ“„ ๐Ÿ”ข ๐Ÿ”œ ๐Ÿค™ ๐Ÿ‡จ๐Ÿ‡ป โŒ (๐Ÿ”‘-๐Ÿ’ฒ ๐Ÿ‘ซ), ๐Ÿ’ญ <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. ๐Ÿšฅ ๐Ÿ‘ซ ๐Ÿšซ โœ”๏ธ ๐Ÿ”ข ๐Ÿ’ฒ.
    
    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## ๐Ÿ”ข ๐Ÿ”ฌ: ๐Ÿ‘‘ ๐ŸŒ˜ โš–๏ธ ๐ŸŒ“
    
    โฎ๏ธ `Query` &amp; `Path` (&amp; ๐ŸŽ ๐Ÿ‘† ๐Ÿ”œ ๐Ÿ‘€ โช) ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐Ÿ”ข โš›.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/pt/docs/tutorial/path-params-numeric-validations.md

    O Python nรฃo vai fazer nada com esse `*`, mas ele vai saber que a partir dali os parรขmetros seguintes deverรฃo ser chamados argumentos nomeados (pares chave-valor), tambรฉm conhecidos como <abbr title="Do inglรชs: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Mesmo que eles nรฃo possuam um valor padrรฃo.
    
    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ## Validaรงรตes numรฉricas: maior que ou igual
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/path-params-numeric-validations.md

    Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value.
    
    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial003.py!}
    ```
    
    ### Better with `Annotated`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top