InfluxDB backup to json, txt, or csv format


I’m very new to influxdb and I need to gain access to the influxdb, using Python and not through the UI (web browser). I did ‘influx backup’ but the output files are in “.tsm” format and I cannot decode it with UTF-8. Is there a way to backup the full data to a JSON, text, or csv format so I can use Python to parse the data?

I would really appreciate any help, thanks.