Component
A Component is any class that implements some logic (e.g., data loading, processing, etc…).
Cinnamon does not impose any APIs to your existing code, except that any class has to inherit from Component.
The below code example
class CustomClass:
def __init__(self, x):
self.x = x
can be quickly integrated into cinnamon by inheriting from Component.
class CustomClass(cinnamon.component.Component):
def __init__(self, x):
self.x = x
The same applies for more articulated python classes.