faust.cli.params
Python click parameter types.
-
class
faust.cli.params.
CaseInsensitiveChoice
(choices: Iterable[Any])[source]
Case-insensitive version of click.Choice
.
-
convert
(value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) → Any[source]
Convert string to case-insensitive choice.
- Return type
Any
-
class
faust.cli.params.
TCPPort
[source]
CLI option: TCP Port (integer in range 1 - 65535).
-
name
= 'range[1-65535]'
-
class
faust.cli.params.
URLParam
→ None[source]
URL click parameter type.
Converts any string URL to yarl.URL
.
-
name
= 'URL'
-
convert
(value: str, param: Optional[click.core.Parameter], ctx: Optional[click.core.Context]) → yarl.URL[source]
Convert str
argument to yarl.URL
.
- Return type
URL