Pass graph parameters from python to grafana

I am ussing grafana + influx DB + in my project .
Question is how can i pass time range of graph i would like to get form python or directy from WWW to grafana.
i am passing graf to WWW by iframe

iframe src=“” width=“450” height=“200” frameborder=“0”>