Python 3.9 is now generally available.

google.appengine.api.blobstore.blob_storage.BlobStorage

Base class for defining how blobs are stored.

Inherits From: expected_type

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

Methods

DeleteBlob

View source

Delete blob data from storage.

Args
blob_key Blob-key of existing blob to delete.

OpenBlob

View source

Open blob for streaming.

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

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

StoreBlob

View source

Store blob stream.

Implement this method to persist blob data.

Args
blob_key Blob key of blob to store.
blob_stream Stream or stream-like object that will generate blob content.