Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(593)

Issue 6458129: Added examples for using the JSON API for file transfers.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by yovadia
Modified:
13 years, 2 months ago
Visibility:
Public.

Description

Added examples for using the JSON API for file transfers.

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed exponential backoff and progressless_iters. #

Patch Set 3 : Added apache license. #

Total comments: 23

Patch Set 4 : Consolidated upload/download to one script; switched to using client_secrets.json; other suggestion… #

Total comments: 4

Patch Set 5 : Added README, changed function capitalization, added printing of uploaded object JSON. #

Total comments: 2

Patch Set 6 : Fixed README to use standard format. #

Total comments: 2

Patch Set 7 : Fixed README to use valid keywords. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -16 lines) Patch
A file-transfer-json/README View 1 2 3 4 5 6 1 chunk +41 lines, -0 lines 0 comments Download
M file-transfer-json/chunked_transfer.py View 1 2 3 4 10 chunks +17 lines, -16 lines 0 comments Download
A file-transfer-json/client_secrets.json View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 19
yovadia
13 years, 2 months ago (2012-08-14 18:13:02 UTC) #1
nherring
http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_download.py File file-transfer-json/chunked_download.py (right): http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_download.py#newcode48 file-transfer-json/chunked_download.py:48: sleeptime = random.random() + (2**progressless_iters) Generally exponential backoff uses ...
13 years, 2 months ago (2012-08-15 02:34:46 UTC) #2
yovadia
Thanks; PTAL. http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_download.py File file-transfer-json/chunked_download.py (right): http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_download.py#newcode48 file-transfer-json/chunked_download.py:48: sleeptime = random.random() + (2**progressless_iters) On 2012/08/15 ...
13 years, 2 months ago (2012-08-15 15:23:01 UTC) #3
nherring
http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_upload.py File file-transfer-json/chunked_upload.py (right): http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_upload.py#newcode11 file-transfer-json/chunked_upload.py:11: """ On 2012/08/15 15:23:02, yovadia wrote: > On 2012/08/15 ...
13 years, 2 months ago (2012-08-15 16:27:08 UTC) #4
yovadia
Thanks; PTAL. http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_upload.py File file-transfer-json/chunked_upload.py (right): http://codereview.appspot.com/6458129/diff/1/file-transfer-json/chunked_upload.py#newcode11 file-transfer-json/chunked_upload.py:11: """ On 2012/08/15 16:27:08, nherring wrote: > ...
13 years, 2 months ago (2012-08-15 16:32:46 UTC) #5
nherring
LGTM
13 years, 2 months ago (2012-08-15 17:26:29 UTC) #6
marccohen
http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_download.py File file-transfer-json/chunked_download.py (right): http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_download.py#newcode32 file-transfer-json/chunked_download.py:32: import httplib2 nit picky but probably cleaner to keep ...
13 years, 2 months ago (2012-08-21 00:30:47 UTC) #7
jcgregorio_google
http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_download.py File file-transfer-json/chunked_download.py (right): http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_download.py#newcode93 file-transfer-json/chunked_download.py:93: filename = argv[2] Use gflags for processing command-line args, ...
13 years, 2 months ago (2012-08-21 13:05:14 UTC) #8
yovadia
Thanks for the review; PTAL. Also, I merged in the repo changes since checking in ...
13 years, 2 months ago (2012-08-21 21:08:31 UTC) #9
jcgregorio_google
http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_upload.py File file-transfer-json/chunked_upload.py (right): http://codereview.appspot.com/6458129/diff/10001/file-transfer-json/chunked_upload.py#newcode38 file-transfer-json/chunked_upload.py:38: FLOW = OAuth2WebServerFlow( On 2012/08/21 21:08:31, yovadia wrote: > ...
13 years, 2 months ago (2012-08-21 23:41:20 UTC) #10
marccohen
LGTM, modulo one typo. I like what you've done to combined upload and download flows ...
13 years, 2 months ago (2012-08-23 22:35:18 UTC) #11
jcgregorio_google
http://codereview.appspot.com/6458129/diff/6003/file-transfer-json/chunked_transfer.py File file-transfer-json/chunked_transfer.py (right): http://codereview.appspot.com/6458129/diff/6003/file-transfer-json/chunked_transfer.py#newcode91 file-transfer-json/chunked_transfer.py:91: def GetAuthenticatedService(scope): get_authenticated_service to keep it consistent with the ...
13 years, 2 months ago (2012-08-23 23:06:20 UTC) #12
yovadia
Thanks PTAL. http://codereview.appspot.com/6458129/diff/6003/file-transfer-json/chunked_transfer.py File file-transfer-json/chunked_transfer.py (right): http://codereview.appspot.com/6458129/diff/6003/file-transfer-json/chunked_transfer.py#newcode49 file-transfer-json/chunked_transfer.py:49: # File where we will store authentication ...
13 years, 2 months ago (2012-08-24 00:24:00 UTC) #13
jcgregorio_google
http://codereview.appspot.com/6458129/diff/15003/file-transfer-json/README.txt File file-transfer-json/README.txt (right): http://codereview.appspot.com/6458129/diff/15003/file-transfer-json/README.txt#newcode1 file-transfer-json/README.txt:1: File Transfer with Google Cloud Storage and the Google ...
13 years, 2 months ago (2012-08-24 00:35:16 UTC) #14
yovadia
Fixed the README; PTAL. http://codereview.appspot.com/6458129/diff/15003/file-transfer-json/README.txt File file-transfer-json/README.txt (right): http://codereview.appspot.com/6458129/diff/15003/file-transfer-json/README.txt#newcode1 file-transfer-json/README.txt:1: File Transfer with Google Cloud ...
13 years, 2 months ago (2012-08-24 00:43:57 UTC) #15
jcgregorio_google
http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README File file-transfer-json/README (right): http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README#newcode5 file-transfer-json/README:5: keywords: storage, json, upload, download, media Sorry, I forgot ...
13 years, 2 months ago (2012-08-24 01:08:01 UTC) #16
yovadia
Thanks; PTAL. http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README File file-transfer-json/README (right): http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README#newcode5 file-transfer-json/README:5: keywords: storage, json, upload, download, media On ...
13 years, 2 months ago (2012-08-24 01:20:43 UTC) #17
jcgregorio_google
LGTM On 2012/08/24 01:20:43, yovadia wrote: > Thanks; PTAL. > > http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README > File file-transfer-json/README ...
13 years, 2 months ago (2012-08-24 01:21:21 UTC) #18
yovadia
13 years, 2 months ago (2012-08-24 01:27:05 UTC) #19
Submitted to: http://code.google.com/p/google-cloud-platform-samples/source/browse?repo=sto... On 2012/08/24 01:21:21, jcgregorio_google wrote: > LGTM > > On 2012/08/24 01:20:43, yovadia wrote: > > Thanks; PTAL. > > > > http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README > > File file-transfer-json/README (right): > > > > > http://codereview.appspot.com/6458129/diff/16003/file-transfer-json/README#ne... > > file-transfer-json/README:5: keywords: storage, json, upload, download, media > > On 2012/08/24 01:08:01, jcgregorio_google wrote: > > > Sorry, I forgot to point out that the list of valid keywords is here: > > > > > > > > > > > > http://code.google.com/p/google-api-python-client/source/browse/samples-index... > > > > > > I updated the wiki page with that information. > > > > > > I do think 'media' is a good category for samples, could you add that as a > > > KEYWORD entry? > > > > Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b