run
faststream.cli.main.run #
run(
ctx: 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",
),
watch_extensions: List[str] = typer.Option(
(),
"--extension",
"--reload-extension",
"--reload-ext",
"--ext",
help="List of file extensions to watch by",
),
app_dir: str = typer.Option(
".",
"--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
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|