luigi.configuration package

Module contents

luigi.configuration.add_config_path(path)[source]

Select config parser by file extension and add path into parser.

luigi.configuration.get_config(parser='cfg')[source]

Get configs singleton for parser

class luigi.configuration.LuigiConfigParser(defaults=None, dict_type=<class 'collections.OrderedDict'>, allow_no_value=False)[source]

Bases: luigi.configuration.base_parser.BaseParser, ConfigParser.ConfigParser

NO_DEFAULT = <object object>
enabled = True
classmethod reload()[source]
has_option(section, option)[source]

modified has_option Check for the existence of a given option in a given section. If the specified ‘section’ is None or an empty string, DEFAULT is assumed. If the specified ‘section’ does not exist, returns False.

get(section, option, default=<object object>, **kwargs)[source]
getboolean(section, option, default=<object object>)[source]
getint(section, option, default=<object object>)[source]
getfloat(section, option, default=<object object>)[source]
getintdict(section)[source]
set(section, option, value=None)[source]
class luigi.configuration.LuigiTomlParser[source]

Bases: luigi.configuration.base_parser.BaseParser

NO_DEFAULT = <object object>
enabled = False
data = {}
read(config_paths)[source]
get(section, option, default=<object object>, **kwargs)[source]
getboolean(section, option, default=<object object>)[source]
getint(section, option, default=<object object>)[source]
getfloat(section, option, default=<object object>)[source]
getintdict(section)[source]
set(section, option, value=None)[source]
has_option(section, option)[source]