Uploading large files to google drive or Dropbox

83 views
Skip to first unread message

Rajdeep Rath

unread,
Mar 26, 2021, 2:25:16 PM3/26/21
to python-...@googlegroups.com
Hello,

I just came across this example : 

I was wondering if I can use this to upload files to google drive etc ? Also is there a limit to how big files can be uploaded ? Will an upload ops affect rest of the application’s asynchronous performance?

Regards 

Ben Darnell

unread,
Mar 26, 2021, 4:37:10 PM3/26/21
to Tornado Mailing List
On Fri, Mar 26, 2021 at 2:25 PM Rajdeep Rath <rajde...@gmail.com> wrote:
Hello,

I just came across this example : 

I was wondering if I can use this to upload files to google drive etc ?

Not on its own - to use the APIs for one of these services you'll need to deal with their authentication protocols, etc. The `body_producer` pattern should still be applicable, though.
 
Also is there a limit to how big files can be uploaded ?

Not on the sender's side, although the receiver will presumably have some limits in place.
 
Will an upload ops affect rest of the application’s asynchronous performance?

Depends on other factors including your network. You may want to add an `await gen.sleep(...)` call to the body_producer loop to limit how fast the data will be uploaded to ensure that it won't saturate the entire network link (or, in some cases with a very fast network, so it won't monopolize your CPU)

-Ben
 

Regards 

--
You received this message because you are subscribed to the Google Groups "Tornado Web Server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-tornad...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-tornado/CAP869y-8F304jfsCWeNmomSSwMFbjiQJP-9AOXWr_yRShA4DsQ%40mail.gmail.com.

Rajdeep Rath

unread,
Mar 29, 2021, 9:16:53 PM3/29/21
to python-...@googlegroups.com
Thank you. I will try and see👍

Reply all
Reply to author
Forward
0 new messages