storage.bucket

Module Contents

Classes

Bucket

Attributes

log

storage.bucket.log
class storage.bucket.Bucket(storage, name)
Parameters:
async get_blob(blob_name, timeout=DEFAULT_TIMEOUT, session=None)
Parameters:
  • blob_name (str) –

  • timeout (int) –

  • session (Optional[requests.Session]) –

Return type:

storage.blob.Blob

async blob_exists(blob_name, session=None)
Parameters:
  • blob_name (str) –

  • session (Optional[requests.Session]) –

Return type:

bool

async list_blobs(prefix='', match_glob='', session=None)
Parameters:
  • prefix (str) –

  • match_glob (str) –

  • session (Optional[requests.Session]) –

Return type:

List[str]

new_blob(blob_name)
Parameters:

blob_name (str) –

Return type:

storage.blob.Blob

async get_metadata(params=None, session=None)
Parameters:
  • params (Optional[Dict[str, Any]]) –

  • session (Optional[requests.Session]) –

Return type:

Dict[str, Any]