flowpipe.event module

Events are emitted during node evaluation.

They an be used to observe the evaluation process.

class flowpipe.event.Event(name)

Bases: object

Very simple implementation of an event system.event

The event simply calls the registered functions with the given arguments. Please note that the integrity of the listeners is not enforced or checked.

clear()

Remove all listeners from this event.

deregister(listener)

Deregister the given function object if it is registered.

emit(*args, **kwargs)

Call all the listeners with the given args and kwargs.

is_registered(listener)

Whether the given function object is already registered.

register(listener)

Register the given function object if it is not yet registered.