command-pattern
A dependency-free domain layer for Python: entities, invariants and operations independent of UI, storage and transport — driven through one entry point by requests that are data, recordable and replayable.