Skip to content

src/dazzle_back/events/service_mixin.py

Generated: 2026-03-30T04:38:46.230672+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

Event-Emitting Service Mixin.

This module provides a mixin class that adds event emission capabilities to CRUD services. Events are emitted through the outbox for transactional safety.

Usage: class MyService(EventEmittingMixin, CRUDService): pass

# Events will be automatically emi...

Key Exports

  • EventEmittingMixin
  • EventEmittingCRUDService
  • set_event_framework
  • configure_events

Dependencies

Imports

  • logging
  • typing.Any
  • typing.Generic
  • typing.TypeVar
  • uuid.UUID
  • pydantic.BaseModel
  • dazzle_back.events.envelope.EventEnvelope

Event Interactions

Emits: entity.created, entity.deleted, entity.updated

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_events.py
  • tests/unit/test_events_api.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.