I am using the python requests module to query the influxdb on my localhost using the influx API. The code is as follows.
import requests INFLUX_DATABASE_NAM