sregistry/client/backend.py
def list_backends(backend=None):
    '''return a list of backends installed for the user, which is based on
       the config file keys found present
 
       Parameters
       ==========
       backend: a specific backend to list. If defined, just list parameters.

    '''
    settings = read_client_secrets()

    # Backend names are the keys
    backends = list(settings.keys())    
    backends = [b for b in backends if b!='SREGISTRY_CLIENT']

    if backend in backends:
        bot.info(backend)
        print(json.dumps(settings[backend], indent=4, sort_keys=True))
    else:
        if backend is not None:
            print('%s is not a known client.' %backend)
        bot.info("Backends Installed")
        print('\n'.join(backends))
def list_backends(backend=None):
    '''return a list of backends installed for the user, which is based on
       the config file keys found present
 
       Parameters
       ==========
       backend: a specific backend to list. If defined, just list parameters.

    '''
    settings = read_client_secrets()

    # Backend names are the keys
    backends = list(settings.keys())    
    backends = [b for b in backends if b!='SREGISTRY_CLIENT']

    if backend in backends:
        bot.info(backend)
        print(json.dumps(settings[backend], indent=4, sort_keys=True))
    else:
        if backend is not None:
            print('%s is not a known client.' %backend)
        bot.info("Backends Installed")
        print('\n'.join(backends))
def list_backends ( backend = None ) : settings = read_client_secrets ( ) # Backend names are the keys backends = list ( settings . keys ( ) ) backends = [ b for b in backends if b != 'SREGISTRY_CLIENT' ] if backend in backends : bot . info ( backend ) print ( json . dumps ( settings [ backend ] , indent = 4 , sort_keys = True ) ) else : if backend is not None : print ( '%s is not a known client.' % backend ) bot . info ( "Backends Installed" ) print ( '\n' . join ( backends ) )
return a list of backends installed for the user, which is based on
       the config file keys found present
 
       Parameters
       ==========
       backend: a specific backend to list. If defined, just list parameters.
return a list of backends installed for the user which is based on the config file keys found present Parameters ========== backend : a specific backend to list . If defined just list parameters .