Allow the Write API to accept an IO or StringIO object #308
ksouthworth
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I know, the Write API only accepts a
File
object. It would be nice if I could pass in anyIO
orStringIO
object instead, for writing the CSV into a stream / memory.My use case is I want to stream a CSV out from a Rails 8 controller action, without having to manage Tempfiles or having to create Files on disk in the process.
Beta Was this translation helpful? Give feedback.
All reactions