Utility Functions

handypy.utils.load_yaml_namespace(filename: str)argparse.Namespace[source]

Load YAML config into a Namespace object

Parameters

filename – YAML file

Returns

Namespace object that attributes are accessible directly

handypy.utils.set_log(level: str = 'info')None[source]

Set Logger level

Parameters

level – info|warn|error|critical etc.

handypy.utils.validate_folder(folder: str)None[source]

Validate target folder exists, if not exist, an empty folder will be created.

Parameters

folder – folder path