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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file cloud-mappings-0.2.0.tar.gz.

File metadata

  • Download URL: cloud-mappings-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

File hashes

Hashes for cloud-mappings-0.2.0.tar.gz
Algorithm Hash digest
SHA256 37915bb7ec813db802fc3abee67d92632b53dbfc4d328f8b96819f3f2fadec16
MD5 454e61adcbb6c2af6a3f8c2ee57727cc
BLAKE2b-256 08f3437ea353f42862454c6faef80825b60acf2ace12816741f9bca14de25102

See more details on using hashes here.

File details

Details for the file cloud_mappings-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cloud_mappings-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.9

File hashes

Hashes for cloud_mappings-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 011db3207a9b7f9675d8d8bad8a77b531eca3c6545d213f7162477aa0ce4dbbb
MD5 a566b3ebd276c4d1e9e0a86dbbbe7f9c
BLAKE2b-256 e4f4f01d773f70de96d79de6509f9706786fc420760bdf753f4613cc65570188

See more details on using hashes here.

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