In [16]:
import pyes

es = pyes.ES('http://search-01.ec2.internal:9200')

In [17]:
es


Out[17]:
<pyes.es.ES at 0x7f2f884cd610>

In [19]:
from pyes import *
index_name = "gsod"

es = ES('http://search-01.ec2.internal:9200')

In [14]:
es.


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-2b56d2f468c3> in <module>()
----> 1 es.mappings.get_mapping(index_name)

AttributeError: 'Mapper' object has no attribute 'get_mapping'

In [ ]: