py-scopes/scopes/core/message.py

15 lines
293 B
Python

# scopes.core.message
"""Generic message definition"""
from scopes import shape
class Message(shape.Record):
headFields = ['domain', 'action', 'class', 'item']
customer = None
def __repr__(self):
return f'<{self.__class__.__name__}: {self.headValues}, {self.data}>'