hyfi.__cli__
This module contains the command line interface for the hyfi
package. It is implemented using the hydra
package. You can run the CLI by executing the hyfi
command.
Command line interface for HyFI
cli_main(cfg)
Main function for the command line interface. Initializes Hydra and instantiates the class. Prints the configuration to standard out if verbose is set to True
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cfg
|
DictConfig
|
Configuration dictionary to be used for instantiation |
required |
Returns:
Type | Description |
---|---|
None
|
None if everything went fine otherwise an error is raised |
None
|
to indicate the reason for the failure |
Source code in hyfi/__cli__.py
hydra_main(config_path=None, config_name=None, overrides=None, plugins=None)
Main function for the command line interface of Hydra
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_path
|
Optional[str]
|
The config path, a directory where Hydra will search for
config files. This path is added to Hydra's searchpath.
Relative paths are interpreted relative to the declaring python
file. Alternatively, you can use the prefix |
None
|
config_name
|
Optional[str]
|
The name of the config (usually the file name without the .yaml extension) |
None
|
Source code in hyfi/__cli__.py
hyfi_main(config_path=None, config_name=None, overrides=None, plugins=None)
Main function for the command line interface of Hydra
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_path
|
Optional[str]
|
The config path, a directory where Hydra will search for
config files. This path is added to Hydra's searchpath.
Relative paths are interpreted relative to the declaring python
file. Alternatively, you can use the prefix |
None
|
config_name
|
Optional[str]
|
The name of the config (usually the file name without the .yaml extension) |
None
|