def get_app(defs, add_help=True):
    def is_resource(d):
        try:
            if issubclass(d, wsgiservice.Resource) and hasattr(d, '_path'):
                return True
        except TypeError:
            pass  # d wasn't a class

        return False

    resources = [d for d in defs.values() if is_resource(d)]
    if add_help:
        resources.append(wsgiservice.resource.Help)
    return Application(resources)
Small wrapper function to returns an instance of :class:`Application`
dataset/ETHPy150Open pneff/wsgiservice/wsgiservice/application.py/get_app