In an event-driven program, parts do not call each other. A part announces that something happened, and any part that cares reacts. That keeps the parts apart, so that a new reaction can be added without changing the code that announces the event. This project builds an event bus with priorities, handlers that may be ordinary or asynchronous, and a rule that one failing handler never stops the others, and uses it for a small order system.
More lessons in Complete Python Programming