bi_etl.notifiers.notifier_base module

class bi_etl.notifiers.notifier_base.NotifierAttachment(content: RawIOBase | BinaryIO | TextIO | bytes | str = None, *, filename: str | None = None)[source]

Bases: object

__init__(content: RawIOBase | BinaryIO | TextIO | bytes | str = None, *, filename: str | None = None)[source]
Parameters:
  • content – Content of the attachment.

  • filename – Optional only if content is a FileIO type object that has name. Note: If this name is provided, it overrides content.name value if that also exists.

property binary_reader: BufferedIOBase
property bytes_content: bytes
property str_content: str
class bi_etl.notifiers.notifier_base.NotifierBase(*, name: str | None = None)[source]

Bases: object

__init__(*, name: str | None = None)[source]
post_status(status_message)[source]

Send a temporary status messages that gets overwritten with the next status message that is sent.

Parameters:

status_message

send(subject: str, message: str, sensitive_message: str = None, attachment: NotifierAttachment | None = None, throw_exception: bool = False, **kwargs)[source]
warn_kwargs(**kwargs)[source]
exception bi_etl.notifiers.notifier_base.NotifierException[source]

Bases: Exception

__init__(*args, **kwargs)
add_note(note, /)

Add a note to the exception

args
with_traceback(tb, /)

Set self.__traceback__ to tb and return self.