Framework

Source: ops.Framework

Within the charm class, the Ops framework provides a reference to the self.framework. This is an object-oriented representation of the Framework itself, and any methods it provides. The most important construct within the Framework object is event handling. The observer pattern from the Framework can be seen in use here:

self.framework.observe(self.on.config_changed, self._on_config_changed)