I'm able to upload a file to Google Drive using the python API as provided in this example by using the MediaUpload class.
But I need to upload a file which is dynamically created and I don't want to save it and open again.
There is no such implementation already existing. This guide says I need to create a subclass of MediaUpload and must fully implement the MediaUpload interface.
I went through the code and it's really confusing. If anyone had already implemented it or could help me with this, please share the code.
Thank you