ksuit.utils.common.validation

Functions

float_to_integer_exact(f)

Converts floats without decimals to int.

check_exclusive(*args)

Checks if exactly one of the arguments is not None.

check_inclusive(*args)

Checks if either all arguments are not None or if all are None.

check_at_least_one(*args)

Checks if at least one of the arguments is not None.

check_at_most_one(*args)

Checks if at most one of the arguments is not None.

check_all_none(*args)

Checks if all arguments are None.

Module Contents

ksuit.utils.common.validation.float_to_integer_exact(f)

Converts floats without decimals to int.

Parameters:

f (float)

Return type:

int

ksuit.utils.common.validation.check_exclusive(*args)

Checks if exactly one of the arguments is not None.

Parameters:

args (Any)

Return type:

bool

ksuit.utils.common.validation.check_inclusive(*args)

Checks if either all arguments are not None or if all are None.

Parameters:

args (Any)

Return type:

int

ksuit.utils.common.validation.check_at_least_one(*args)

Checks if at least one of the arguments is not None.

Parameters:

args (Any)

Return type:

bool

ksuit.utils.common.validation.check_at_most_one(*args)

Checks if at most one of the arguments is not None.

Parameters:

args (Any)

Return type:

bool

ksuit.utils.common.validation.check_all_none(*args)

Checks if all arguments are None.

Parameters:

args (Any)

Return type:

bool