certdeploy package

Subpackages

Submodules

certdeploy.errors module

exception certdeploy.errors.CertDeployError[source]

Bases: Exception

CertDeploy specific error.

exception certdeploy.errors.ConfigError[source]

Bases: CertDeployError

Configuration error

exception certdeploy.errors.ConfigInvalid(key, value, must=None, config_desc='')[source]

Bases: ConfigError

exception certdeploy.errors.ConfigInvalidChoice(key, value, choices, quote=True, config_desc='')[source]

Bases: ConfigInvalid

exception certdeploy.errors.ConfigInvalidNumber(key, value, is_type='number', optional=False, gt=None, lt=None, ge=None, le=None, config_desc='')[source]

Bases: ConfigInvalid

exception certdeploy.errors.ConfigInvalidPath(key, value, exist=True, writable=False, bad_format=False, is_type='', config_desc='')[source]

Bases: ConfigInvalid

Module contents

class certdeploy.LogLevel(value)[source]

Bases: Enum

An enumeration.

CRITICAL = 'CRITICAL'
DEBUG = 'DEBUG'
ERROR = 'ERROR'
INFO = 'INFO'
WARNING = 'WARNING'
class certdeploy.Logger(name)[source]

Bases: object

error(*args, exc_info=None, **kwargs)[source]

Log an error message.

See logging.error for details. This method differs from logging.error in the following ways:

  • If the first argument is an exception it’s formatted so the type

    is given and not just the message.

  • exc_info is ignored if the log level is anything but DEBUG.

setLevel(level: Union[int, LogLevel])[source]
certdeploy.format_error(err, message_format='{name}: {message}')[source]