pctasks.core.storage.blob.BlobUri#

class pctasks.core.storage.blob.BlobUri(uri: str)#

Represents a blob uri Azure Blob Storage.

A blob URI can be to a specific blob, a prefix that represents many blobs, or only a storage account and container.

The URIs are structured like this:

blob://{storage_account_name}/{container_name}/{prefix}/blob.txt}

Attributes:
  • storage_account_name: The name of the storage account for this path.

  • container_name: The name of the container for this path

  • blob_name: the blob name or prefix, if exists. If not, None.

Parameters:

uri (str) –

__init__(uri: str) None#
Parameters:

uri (str) –

Return type:

None

Methods

__init__(uri)

matches(uri)

Checks to see if a uri is a blob uri

Attributes

base_uri

Returns the BlobUri for the storage account and container

url

Gets the HTTPS URL for this blob path.