Usage
Installation
To use framework, first install it using pip:
(.venv) $ pip install framework
Producing messages
To define a new type of message, extend the framework.Model class:
- class framework.Model
Modules are messages containing dat. They can be produced and consumed.
You can dump info about the Model with the framework.Model.dump() function:
- framework.Model.dump(self)
Dumps debug info about the Model
For example:
>>> import framework
>>> class MyModel(framework.Model):
>>> self.name = 'whatever'
>>>
>>> model = MyModel()
>>> model.dump()