<filename>mvp/model/PETPModel.py
import logging

from utils import SystemConfig


class PETPModel(object):

    def __init__(self, config: SystemConfig):
        # refer to: config/petpconfig.yaml
        self.sysconfig = config
        self.sysconfig.bind_model(self, ['application'])
        logging.info('Init PETPModel')

    def __str__(self):
        return str(self.__dict__)

    def __eq__(self, other):
        return self.__dict__ == other.__dict__

<filename>mvp/model/PETPModel.py
import logging

from utils import SystemConfig


class PETPModel(object):

    def __init__(self, config: SystemConfig):
        # refer to: config/petpconfig.yaml
        self.sysconfig = config
        self.sysconfig.bind_model(self, ['application'])
        logging.info('Init PETPModel')

    def __str__(self):
        return str(self.__dict__)

    def __eq__(self, other):
        return self.__dict__ == other.__dict__

# refer to: config/petpconfig.yaml