get_app_path
faststream.cli.utils.imports.get_app_path #
Get the application path.
PARAMETER | DESCRIPTION |
---|---|
app | The name of the application in the format "module:app_name". TYPE: |
RETURNS | DESCRIPTION |
---|---|
Tuple[Path, str] | Tuple[Path, str]: A tuple containing the path to the module and the name of the application. |
RAISES | DESCRIPTION |
---|---|
ValueError | If the given app is not in the format "module:app_name". |
Note
The above docstring is autogenerated by docstring-gen library (https://docstring-gen.airt.ai)
Source code in faststream/cli/utils/imports.py
Last update: 2023-11-13