taps.data.config¶
FilterConfig ¶
Bases: Config
Filter configuration.
add_argument_group()
classmethod
¶
add_argument_group(
parser: ArgumentParser,
*,
argv: Sequence[str] | None = None,
required: bool = True
) -> None
Add model fields as arguments of an argument group on the parser.
Parameters:
-
parser
(ArgumentParser
) –Parser to add a new argument group to.
-
argv
(Sequence[str] | None
, default:None
) –Optional sequence of string arguments.
-
required
(bool
, default:True
) –Mark arguments without defaults as required.
Source code in taps/config.py
get_filter() ¶
get_filter() -> Filter
Get a filter according to the config.
Source code in taps/data/config.py
DataTransformerChoicesConfig ¶
Bases: Config
Data transformer choice configuration.
add_argument_group()
classmethod
¶
add_argument_group(
parser: ArgumentParser,
*,
argv: Sequence[str] | None = None,
required: bool = True
) -> None
Add model fields as arguments of an argument group on the parser.
Parameters:
-
parser
(ArgumentParser
) –Parser to add a new argument group to.
-
argv
(Sequence[str] | None
, default:None
) –Optional sequence of string arguments.
-
required
(bool
, default:True
) –Mark arguments without defaults as required.