-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow csv_path to be a file-like object as well #68
Comments
Do you see this as distinct from #25? |
I had a look at that, and it looked like the person was suggesting a signature of CopyMapping in the following way I wouldn't change the signature at all, instead I'd keep If that sounds like an acceptable way of doing things, I'll submit something in the next few days. |
You're right, though if I understand it right the solution proposed lower down in the thread ultimately uses a StringIO object, which I presume is something similar to what you're thinking. If that's right, your file object approach might provide a crucial building block to tackle that more complex "list of objects" challenge. If you have an idea, I say go for it! |
Sometimes you don't have the CSV on disk but in memory. In instances like that it would be useful to be able to provide a file like object instead of first writing the csv to disk and then provide the path.
The text was updated successfully, but these errors were encountered: