Query InfluxDB data in chunks

I am looking for an easy way to query data from InfluxDB 2.x in chunks. My preferred way would be through the Python client (and Flux).

Things I considered:

  • Python client for InfluxDB 1.x: I saw that this was an option there, but it is not implemented yet for 2.x.
  • The discussion here: There are only two third-party packages offered. One is for Clojure (not my strength :O). The other is based on time-chunking (it should be row-based).
  • I am thinking about getting first the number of rows in my query and pull only a subset of them at once. However, I do not see options for that. Or should I query only the timestamp first and generate chunk-queries based on that?

I would appreciate any suggestions.