Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Blobstore API with Google Cloud Storage samples#709

Merged
theacodes merged 12 commits into
masterGoogleCloudPlatform/python-docs-samples:masterfrom
blobstore-samplesGoogleCloudPlatform/python-docs-samples:blobstore-samplesCopy head branch name to clipboard
Jan 5, 2017
Merged

Blobstore API with Google Cloud Storage samples#709
theacodes merged 12 commits into
masterGoogleCloudPlatform/python-docs-samples:masterfrom
blobstore-samplesGoogleCloudPlatform/python-docs-samples:blobstore-samplesCopy head branch name to clipboard

Conversation

@ryanmats

@ryanmats ryanmats commented Dec 9, 2016

Copy link
Copy Markdown
Contributor

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.