configs
Configs
The base classes for step entrypoint configs.
Base classes
The base classes for step entrypoint configs.
kelp.core.configs.base.ConfigBase
Bases: BaseModel
A base class for all entrypoint config classes.
Source code in kelp/core/configs/base.py
11 12 13 14 15 16 17 18 19 20 21 |
|
kelp.core.configs.base.ConfigBase.log_self
Logs a short info with INFO logging level about what parameters is the script being run with.
Source code in kelp/core/configs/base.py
17 18 19 20 21 |
|
Argument parsing
The argument parsing helper functions for the script entrypoint arguments.
kelp.core.configs.argument_parsing.parse_args
Parses Command Line arguments and returns the script config model.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parser |
ArgumentParser
|
The instance of |
required |
cfg_cls |
Type[T]
|
The class of the config to use. Anything inheriting from |
required |
Returns:
Type | Description |
---|---|
T
|
A config instance of type given by |
Source code in kelp/core/configs/argument_parsing.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|