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",
)
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for cloud_mappings-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 011db3207a9b7f9675d8d8bad8a77b531eca3c6545d213f7162477aa0ce4dbbb |
|
MD5 | a566b3ebd276c4d1e9e0a86dbbbe7f9c |
|
BLAKE2b-256 | e4f4f01d773f70de96d79de6509f9706786fc420760bdf753f4613cc65570188 |