bibliopixel.control.routing module

class bibliopixel.control.routing.Routing(routing, default, python_path)[source]

Bases: bibliopixel.control.receiver.Receiver

A dict that routes a message to an ActionList.

receive(msg)[source]

Returns a (receiver, msg) pair, where receiver is None if no route for the message was found, or otherwise an object with a receive method that can accept that msg.

set_project(project)[source]

Set the base project for routing.