bovine_process.utils
ByActivityType
Simplifies handling activity by type, usage:
by_type = ByActivityType(One=do_one, Two=do_two})
by_type({"type": one}, arg1, arg2) # calls do_one({"type": one}, arg1, arg2)
Source code in bovine_process/bovine_process/utils/__init__.py
ProcessorList
Creates a list of processors, usage:
processors = ProcessorList(my_processor,
ByActivityType(Follow=my_follow_processor))
await processors(item, args)