def db_exists(name, **client_args):
 if (name in [db['name'] for db in list_dbs(**client_args)]):
  return True
 return False

def db_exists ( name , ** client_args ) : if ( name in [ db [ 'name' ] for db in list_dbs ( ** client_args ) ] ) : return True return False
checks if a database exists in influxdb .