CartoDB / carto-python

CARTO Python client
https://carto.com
BSD 3-Clause "New" or "Revised" License
154 stars 62 forks source link

copy to returning a stream #103

Closed simon-contreras-deel closed 5 years ago

simon-contreras-deel commented 5 years ago

In order to use COPY TO with pandas it in CARTOframes (https://github.com/CartoDB/cartoframes/issues/563), we will need to add this feature. After some doubts (also other approaches), I think this is the best option, but let me know if you think the same.

After that, we will be able to do:

response = copyClient.copyto_stream(query)
df = pandas.read_csv(response)

Please, I am beginner here, so any comment will be appreciated