Skip to main content

MutableMapping interfaces for common cloud storage providers

Project description

cloud-mappings

MutableMapping interfaces for common cloud storage providers

For now only, AzureBlobMapping is implemented.

Installation

with pip:

pip install cloud-mappings

Basic Usage

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",
)

Code style: black

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud-mappings-0.2.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

cloud_mappings-0.2.0-py3-none-any.whl (21.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page