def active_providers():
    """
    Return a dict of {name: module} of active, enabled providers.
    """
    providers = {}
    for provider in settings.JELLYROLL_PROVIDERS:
        if provider.endswith('.*'):
            to_load = expand_star(provider)
        else:
            to_load = [provider]
        for p in to_load:
            try:
                mod = __import__(p, '', '', [''])
            except ImportError, e:
                log.error("Couldn't import provider %r: %s" % (p, e))
            if mod.enabled():
                providers[p] = mod
    return providers
dataset/ETHPy150Open jacobian-archive/jellyroll/src/jellyroll/providers/__init__.py/active_providers/original