Skip to content

Blobstore API with Google Cloud Storage samples#709

Merged
theacodes merged 12 commits intomasterfrom
blobstore-samples
Jan 5, 2017
Merged

Blobstore API with Google Cloud Storage samples#709
theacodes merged 12 commits intomasterfrom
blobstore-samples

Conversation

@ryanmats
Copy link
Copy Markdown
Contributor

@ryanmats ryanmats commented Dec 9, 2016

Moved Blobstore API samples to api folder.
Added "Blobstore API with Google Cloud Storage" samples (taken from https://cloud.google.com/appengine/docs/python/blobstore/ and modified to work) to gcs folder

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 9, 2016

# This handler creates a file in Cloud Storage using the cloudstorage
# client library and then reads the data back using the Blobstore API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary blank line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# Cloud Storage file names are in the format /bucket/object.
filename = '/{}/blobstore_demo'.format(bucket)

# Create a file in Google Cloud Storage and write something to it
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: sentence needs a period. (throughout please)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


# This handler creates a file in Cloud Storage using the cloudstorage
# client library and then serves the file back using the Blobstore API.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary blank line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@theacodes theacodes merged commit 9da144a into master Jan 5, 2017
@theacodes theacodes deleted the blobstore-samples branch January 5, 2017 17:43
chalmerlowe pushed a commit that referenced this pull request Apr 7, 2026
#709)

* samples: Add snippets for upload/download from file-like object/stream

* change sample region tags to be uniform with other libraries

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants