You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a utility function which takes an object as an argument and outputs a file ID on S3, much like write_civis_file (which it calls under the hood after first writing the given file locally). Is there any utility to this? I feel like the reason I did it this way is just that someone's code who I inherited did it that way for powerpoint documents, rather than there being a particularly good reason.
The resolution to this issue might just be an answer of "no, it is not useful".
The text was updated successfully, but these errors were encountered:
If I understand correctly, write_civis_file(obj) already does this. It serializes the file, and returns the file id on S3 after uploading. I don't think a wrapper is needed.
One thing I can imagine is that it can be slightly annoying to save and cleanup objects in temporary files. We have a utility with_tempfile for doing so. Maybe exporting would be helpful?
Makes sense! Maybe surfacing that tempfile utility would be useful? But I defer to you on that; happy to close this issue if you're not especially keen on surfacing with_tempfile.
I have a utility function which takes an object as an argument and outputs a file ID on S3, much like
write_civis_file
(which it calls under the hood after first writing the given file locally). Is there any utility to this? I feel like the reason I did it this way is just that someone's code who I inherited did it that way for powerpoint documents, rather than there being a particularly good reason.The resolution to this issue might just be an answer of "no, it is not useful".
The text was updated successfully, but these errors were encountered: