def __init__(self, config):
    self.account_name = config['AZURE_ACCOUNT_NAME']
    self.storage_key = config['AZURE_STORAGE_KEY']
    self.container_name = config['AZURE_TO_BUCKET_NAME']
    self.timeout = timedelta(seconds=config['PERMANENT_SESSION_LIFETIME'])
    from azure.storage.common import CloudStorageAccount
    from azure.storage.blob import BlobPermissions
    self.CloudStorageAccount = CloudStorageAccount
    self.BlobPermissions = BlobPermissions
def __init__(self, config):
    self.account_name = config['AZURE_ACCOUNT_NAME']
    self.storage_key = config['AZURE_STORAGE_KEY']
    self.container_name = config['AZURE_TO_BUCKET_NAME']
    self.timeout = timedelta(seconds=config['PERMANENT_SESSION_LIFETIME'])
    from azure.storage.common import CloudStorageAccount
    from azure.storage.blob import BlobPermissions
    self.CloudStorageAccount = CloudStorageAccount
    self.BlobPermissions = BlobPermissions