noisify.helpers package

noisify.helpers.fallible module

class noisify.helpers.fallible.Fallible(faults)[source]

Bases: object

Fallible mixin, adds faults to an object as well as getters and setters. Also provides methods for applying faults to an object.

add_fault(fault)[source]

Add a fault to the fallible object

Parameters:fault
Returns:
apply_all_faults(incompletely_flawed_object)[source]

Runs through the fallible objects faults and applies them to an object, returns activated faults as well as the finished object

Parameters:incompletely_flawed_object
Returns:
noisify.helpers.fallible.evaluate_faults(faults)[source]

Enables faults to be given as a single fault, or a list of faults, or a function to generate a fault or list of faults, to the instantiation of the fallible object.

Parameters:faults
Returns:

noisify.helpers.saved_init_statement module

class noisify.helpers.saved_init_statement.SavedInitStatement(*args, **kwargs)[source]

Bases: object

Init statement saving mixin, introspects on object instantiation arguments and saves them to the final object