run
faststream.cli.main.run #
run(
ctx: typer.Context,
app: str = typer.Argument(
...,
help="[python_module:FastStream] - path to your application",
),
workers: int = typer.Option(
1,
show_default=False,
help="Run [workers] applications with process spawning",
),
log_level: LogLevels = typer.Option(
LogLevels.info,
case_sensitive=False,
show_default=False,
help="[INFO] default",
),
reload: bool = typer.Option(
False,
"--reload",
is_flag=True,
help="Restart app at directory files changes",
),
app_dir: Optional[str] = typer.Option(
None,
"--app-dir",
help="Look for APP in the specified directory, by adding this to the PYTHONPATH. Defaults to the current working directory.",
),
) -> None
Run [MODULE:APP] FastStream application
Source code in faststream/cli/main.py
Last update: 2023-11-13