Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.
Stay organized with collections Save and categorize content based on your preferences.

google.appengine.api.blobstore.blob_storage module


Definition of BlobStorage base class.


class google.appengine.api.blobstore.blob_storage.BlobStoragesource

Bases: object

Base class for defining how blobs are stored.

This base class merely defines an interface that all stub blob-storage mechanisms must implement.


Delete blob data from storage.


blob_key – Blob-key of existing blob to delete.


Open blob for streaming.


blob_key – Blob-key of existing blob to open for reading.


Open file stream for reading blob. Caller is responsible for closing file.

StoreBlob(blob_key, blob_stream)source

Store blob stream.

Implement this method to persist blob data.

  • blob_key – Blob key of blob to store.

  • blob_stream – Stream or stream-like object that will generate blob content.