python_cqrs_core.base_command ============================= .. py:module:: python_cqrs_core.base_command .. autoapi-nested-parse:: Base command with tracing and audit fields. Classes ------- .. autoapisummary:: python_cqrs_core.base_command.BaseCommand Module Contents --------------- .. py:class:: BaseCommand Bases: :py:obj:`pydantic.BaseModel`, :py:obj:`python_cqrs_core.command.ICommand` Base command with tracing and audit fields. Provides common fields for observability and audit trail. All commands should extend this class. Example: >>> class CreateUserCommand(BaseCommand): ... name: str ... email: str >>> >>> cmd = CreateUserCommand( ... name="John", ... email="john@example.com", ... requested_by="admin" ... ) .. py:attribute:: request_id :type: uuid.UUID .. py:attribute:: correlation_id :type: Optional[uuid.UUID] .. py:attribute:: requested_by :type: Optional[str] .. py:attribute:: requested_at :type: datetime.datetime .. py:attribute:: model_config