elasticsearch retry_on_timeout python code example
Example 1: connect elasticsearch cloud with python terminal
# Elasticsearch 7.x
elasticsearch>=7.0.0,<8.0.0
# Elasticsearch 6.x
elasticsearch>=6.0.0,<7.0.0
# Elasticsearch 5.x
elasticsearch>=5.0.0,<6.0.0
# Elasticsearch 2.x
elasticsearch>=2.0.0,<3.0.0
Example 2: connect elasticsearch cloud with python terminal
$ python -m pip install elasticsearch