MutableMapping implementations for common cloud storage providers
For now AzureBlobMapping
and GoogleCloudStorageMapping
are implemented. AWS S3 is next on the list.
with pip:
pip install cloud-mappings
Step 1: Instantiate a mapping backed by your chosen cloud storage provider
Step 2: Use it just like a standard dict()
AzureBlobMapping:
from cloudmappings import AzureBlobMapping
cm = AzureBlobMapping.create_with_pickle(
account_url="AZURE_BLOB_STORAGE_URL",
container_name="CONTAINER_NAME",
credential=AZURE_CREDENTIAL_OBJECT,
)
GoogleCloudStorageMapping:
from cloudmappings import GoogleCloudStorageMapping
cm = GoogleCloudStorageMapping.create_with_pickle(
project="GCP_PROJECT",
credentials=GCP_CREDENTIALS_OBJECT,
bucket_name="BUCKET_NAME",
)