octomachinery.app.routing package

Module contents

GitHub webhooks routing.

async octomachinery.app.routing.dispatch_event(event: gidgethub.sansio.Event, *args: Any, **kwargs: Any) → None

Dispatch an event to all registered function(s).

octomachinery.app.routing.process_event(event_type: str, **data_detail: Any) → Callable[[Callable[[...], Awaitable[None]]], Callable[[...], Awaitable[None]]]

Decorator to apply the add() method to a function.

octomachinery.app.routing.process_event_actions(event_name, actions=None)[source]

Subscribe to multiple events.