event_routing_backends.processors.xapi package#

Subpackages#

Submodules#

event_routing_backends.processors.xapi.constants module#

Constants for xAPI specifications.

event_routing_backends.processors.xapi.registry module#

Registry to keep track of xAPI event transformers

class event_routing_backends.processors.xapi.registry.XApiTransformersRegistry#

Bases: TransformerRegistry

Registry to keep track of xAPI event transformers

mapping = {}#

event_routing_backends.processors.xapi.statements module#

xAPI statement classes

class event_routing_backends.processors.xapi.statements.GroupActivity(*args, **kwargs)#

Bases: Activity

Subclass of tincan.Activity which reports object_type=”GroupActivity”

For use with Activites that contain one or more child Activities, like Problems that contain multiple Questions.

property object_type#

Object type for Activity. Will always be “Activity”

Setter:

Tries to convert to unicode

Setter type:

unicode

Return type:

unicode

event_routing_backends.processors.xapi.transformer module#

event_routing_backends.processors.xapi.transformer_processor module#

xAPI processor for transforming and routing events.

class event_routing_backends.processors.xapi.transformer_processor.XApiProcessor#

Bases: BaseTransformerProcessorMixin

xAPI Processor for transforming and routing events.

This processor first transform the event using the registered transformer and then route the events through the configured routers.

Every router configured to be used MUST support the transformed event type.

registry#

alias of XApiTransformersRegistry

transform_event(event)#

Transform the event into IMS xAPI format.

Parameters:

event (dict) – Event to be transformed.

Returns:

transformed event

Return type:

ANY

Raises:

Any Exception

Module contents#

xAPI processors and spec implementation.