linkcheck.configuration.confparse

Parse configuration files

Functions

read_multiline(value)

Helper function reading multiline values.

Classes

LCConfigParser(config)

Parse a LinkChecker configuration file.

class linkcheck.configuration.confparse.LCConfigParser(config)[source]

Bases: configparser.RawConfigParser

Parse a LinkChecker configuration file.

Initialize configuration.

check_password_readable(section, fields)[source]

Check if there is a readable configuration file and print a warning.

read(files)[source]

Read settings from given config files.

Raises

LinkCheckerError on syntax errors in the config file(s)

read_authentication_config()[source]

Read configuration options in section “authentication”.

read_boolean_option(section, option)[source]

Read a boolean option.

read_checking_config()[source]

Read configuration options in section “checking”.

read_filtering_config()[source]

Read configuration options in section “filtering”.

read_int_option(section, option, key=None, min=None, max=None)[source]

Read an integer option.

read_output_config()[source]

Read configuration options in section “output”.

read_plugin_config()[source]

Read plugin-specific configuration values.

read_string_option(section, option, allowempty=False)[source]

Read a string option.

linkcheck.configuration.confparse.read_multiline(value)[source]

Helper function reading multiline values.