pyjob.config.
ConfigMixin
[source]¶Bases: object
Mixin for adding attributes to the config
file
= '/home/docs/.pyjob/pyjob.yml'¶pyjob.config.
PyJobConfig
(**kwargs)[source]¶Bases: dict
, pyjob.config.ConfigMixin
Configuration container for PyJob
from_default
()[source]¶Construct the configuration from the default file
Returns: | A PyJobConfig instance |
---|---|
Return type: | PyJobConfig |
read_yaml
(yamlf)[source]¶Read a YAML file
Parameters: | yamlf (str) – The path to a PyJob YAML config file |
---|---|
Returns: | A PyJobConfig instance |
Return type: | PyJobConfig |
Raises: | FileNotFoundError – Cannot find YAML file |