def list_configs():
 try:
  configs = snapper.ListConfigs()
  return dict(((config[0], config[2]) for config in configs))
 except dbus.DBusException as exc:
  raise CommandExecutionError('Error encountered while listing configurations: {0}'.format(_dbus_exception_to_reason(exc, locals())))

def list_configs ( ) : try : configs = snapper . ListConfigs ( ) return dict ( ( ( config [ 0 ] , config [ 2 ] ) for config in configs ) ) except dbus . DBusException as exc : raise CommandExecutionError ( 'Error encountered while listing configurations: {0}' . format ( _dbus_exception_to_reason ( exc , locals ( ) ) ) )
list all available configs cli example: .