dataduct.utils package

Submodules

dataduct.utils.exceptions module

Exceptions for etl_lib

exception dataduct.utils.exceptions.ETLInputError(msg, code=2)

Bases: exceptions.Exception

Error raised when function input is incorrect.

Parameters:
  • msg (str) – Human readable string describing the exception.
  • code (int, optional) – Error code, defaults to 2.
msg

str

Human readable string describing the exception.

code

int

Exception error code.

dataduct.utils.helpers module

Shared utility functions

dataduct.utils.helpers.exactly_one(*args)

Asserts one of the arguments is not None

Returns:result – True if exactly one of the arguments is not None
Return type:bool

Module contents