def get_flask_app(self, module_name):
    if module_name not in self._registry['flasks']:
      name, conf = self._get_options('flasks', module_name)
      flask_app = Flask(name, **conf.get('kwargs', {}))
      flask_app.config.update(
        {k.upper(): v for k, v in conf.get('config', {}).items()}
      )
      self.flasks.append(flask_app)
      for module in conf['modules']:
        self._registry['flasks'][module] = flask_app
    return self._registry['flasks'][module_name]
Application getter.
dataset/ETHPy150Open mtth/kit/kit/base.py/Kit.get_flask_app