harp_apps.storage.models.messages¶
- class Message[source]¶
Bases:
Base
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- __init__(**kwargs)¶
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.
- classmethod from_models(transaction, message, headers, content)[source]¶
- Parameters:
message (BaseMessage)
- transaction: Mapped[Transaction]¶