def get_provider():
    '''Get the current provider from config'''
    name = get_config('provider')
    available = entrypoints.get_all('udata.avatars')
    if name not in available:
        raise ValueError('Unknown avatar provider: {0}'.format(name))
    return available[name]
def get_provider ( ) : name = get_config ( 'provider' ) available = entrypoints . get_all ( 'udata.avatars' ) if name not in available : raise ValueError ( 'Unknown avatar provider: {0}' . format ( name ) ) return available [ name ]
Get the current provider from config