def get_index_settings(index):
 return get_es().indices.get_settings(index=index).get(index, {}).get('settings', {})

def get_index_settings ( index ) : return get_es ( ) . indices . get_settings ( index = index ) . get ( index , { } ) . get ( 'settings' , { } )
returns es settings for this index .