title: Elasticsearch python client: Getting the ES version through API call
body: <p>I want to get the current Elasticsearch version through the python API.
  I could easily get it through a http call like</p>
  
  <pre><code>import requests
  requests.get(http://endpoint:9200)
  </code></pre>
  
  <p>But I am wondering is there any way to get the version through the API call instead of http request to the endpoint. Like</p>
  
  <pre><code>from elasticsearch import Elasticsearch
  es = Elasticsearch()
  </code></pre>
  
  <p>I went through the Elasticsearch python client documentation, but couldn't find the call that would fetch the current ES version (<a href="https://elasticsearch-py.readthedocs.org/en/master/api.html" rel="noreferrer">https://elasticsearch-py.readthedocs.org/en/master/api.html</a>)</p>