There is no public API to generate dashboards for Python or other languages but you can compare the snapshot URL generated by the Share => Embed Code interface in Kibana
And you'll see that you can add the query to the URL as an encoded parameter. Mind that this procedure may change between versions.
For example you can compare this two URLs that point to a public dashboard I have showing a saved search:
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.