PyLine Core is a lightweight, type-safe Python micro-framework designed to simplify the implementation of the Command Query Responsibility Segregation (CQRS) pattern and Pipeline Orchestration.
In implementation-heavy projects, logic often becomes scattered and difficult to test. PyLine Core provides a structured foundation that:
EventBus with Publish/Subscribe support and graceful shutdown.The HandlerMediator acts as a central post office. You register handlers for specific message types (Commands or Queries), and the mediator ensures they reach their destination.
The Pipe component allows you to define a sequence of steps. Each step can be a Command or a Query. The pipeline handles:
The EventBus allows components to broadcast events (like UserCreatedEvent) to multiple background handlers asynchronously, decoupling side-effects from your main business logic.