python_domain_events.base ========================= .. py:module:: python_domain_events.base .. autoapi-nested-parse:: Base class for internal domain events. Classes ------- .. autoapisummary:: python_domain_events.base.BaseDomainEvent Module Contents --------------- .. py:class:: BaseDomainEvent Bases: :py:obj:`pydantic.BaseModel` Base class for internal domain events (in-process). Use for same-service side effects: - Send emails - Update caches - Log activities - Trigger workflows For cross-service events, use IOutboxEvent from python-outbox-core. .. py:attribute:: model_config .. py:attribute:: event_id :type: uuid.UUID .. py:attribute:: event_type :type: str .. py:attribute:: occurred_at :type: datetime.datetime .. py:attribute:: correlation_id :type: Optional[uuid.UUID] :value: None .. py:attribute:: causation_id :type: Optional[uuid.UUID] :value: None .. py:attribute:: metadata :type: Dict[str, Any]