configparser.ConfigParser.has_section()

has_section(section) Indicates whether the named section is present in the configuration. The default section is not acknowledged.

configparser.ConfigParser.getboolean()

getboolean(section, option, *, raw=False, vars=None[, fallback]) A convenience method which coerces the option in the specified section to a Boolean value. Note that the accepted values for the option are '1', 'yes', 'true', and 'on', which cause this method to return True, and '0', 'no', 'false', and 'off', which cause it to return False. These string values are checked in a case-insensitive manner. Any other value will cause it to raise ValueError. See get() for explanation of raw, vars an

configparser.ConfigParser.getfloat()

getfloat(section, option, *, raw=False, vars=None[, fallback]) A convenience method which coerces the option in the specified section to a floating point number. See get() for explanation of raw, vars and fallback.

configparser.ConfigParser.add_section()

add_section(section) Add a section named section to the instance. If a section by the given name already exists, DuplicateSectionError is raised. If the default section name is passed, ValueError is raised. The name of the section must be a string; if not, TypeError is raised. Changed in version 3.2: Non-string section names raise TypeError.

configparser.ConfigParser.get()

get(section, option, *, raw=False, vars=None[, fallback]) Get an option value for the named section. If vars is provided, it must be a dictionary. The option is looked up in vars (if provided), section, and in DEFAULTSECT in that order. If the key is not found and fallback is provided, it is used as a fallback value. None can be provided as a fallback value. All the '%' interpolations are expanded in the return values, unless the raw argument is true. Values for interpolation keys are looked

configparser.ConfigParser.defaults()

defaults() Return a dictionary containing the instance-wide defaults.

configparser.BasicInterpolation

class configparser.BasicInterpolation The default implementation used by ConfigParser. It enables values to contain format strings which refer to other values in the same section, or values in the special default section [1]. Additional default values can be provided on initialization. For example: [Paths] home_dir: /Users my_dir: %(home_dir)s/lumberjack my_pictures: %(my_dir)s/Pictures In the example above, ConfigParser with interpolation set to BasicInterpolation() would resolve %(home_di

configparser.ConfigParser

class configparser.ConfigParser(defaults=None, dict_type=collections.OrderedDict, allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section=configparser.DEFAULTSECT, interpolation=BasicInterpolation(), converters={}) The main configuration parser. When defaults is given, it is initialized into the dictionary of intrinsic defaults. When dict_type is given, it will be used to create the dicti

configparser.BOOLEAN_STATES

configparser.BOOLEAN_STATES By default when using getboolean(), config parsers consider the following values True: '1', 'yes', 'true', 'on' and the following values False: '0', 'no', 'false', 'off'. You can override this by specifying a custom dictionary of strings and their Boolean outcomes. For example: >>> custom = configparser.ConfigParser() >>> custom['section1'] = {'funky': 'nope'} >>> custom['section1'].getboolean('funky') Traceback (most recent call last):

concurrent.futures.ThreadPoolExecutor

class concurrent.futures.ThreadPoolExecutor(max_workers=None) An Executor subclass that uses a pool of at most max_workers threads to execute calls asynchronously. Changed in version 3.5: If max_workers is None or not given, it will default to the number of processors on the machine, multiplied by 5, assuming that ThreadPoolExecutor is often used to overlap I/O instead of CPU work and the number of workers should be higher than the number of workers for ProcessPoolExecutor.