A lightweight cloud storage package for popular cloud storage services.
Project description
Cloud Storage Slim
Make operations across various cloud storage platforms simple.
Installation
pip install cloud-storage-slim
Usage
from cloud_storage_slim import CloudStorageSlim
cloud_storage = CloudStorageSlim()
cloud_storage.copyto('gs://bucket1/object1', 'az://bucket2/object2')
Features
Supported Cloud Storage
- Google Cloud Storage
- Azure Blob Storage
- AlibabaCloud / Aliyun OSS
- AWS S3
Credentials
Google Cloud Storage
- How Application Default Credentials works
GOOGLE_APPLICATION_CREDENTIALS
- google-cloud-python
pip install google-cloud-storage
Amazon S3
- Boto3 Configuring credentials
- Using environment variables
AWS_ENDPOINT_URL_S3
AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID
,AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
- Boto3
pip install boto3
Azure Blob Storage
- Manage storage account access keys
AZURE_STORAGE_ACCOUNT_NAME
,AZURE_STORAGE_ACCOUNT_KEY
pip install azure-storage-blob azure-identity
AlibabaCloud / Aliyun OSS
- Configure access credentials
OSS_ENDPOINT
OSS_ACCESS_KEY_ID
,OSS_ACCESS_KEY_SECRET
OSS_SESSION_TOKEN
- oss2
pip install oss2
Byteplus / Volcengine - Torch Object Storage
S3 Compatible API
- Byteplus Region and Endpoint
- Byteplus Compatibility with Amazon S3
TOS SDK
TOS_ENDPOINT_URL
TOS_ACCESS_KEY_ID
TOS_SECRET_ACCESS_KEY
TOS_DEFAULT_REGION
- ve-tos-python-sdk
pip install tos
Test cases
before run test cases, you need to prepare the test bucket.
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_storage_slim-0.3.3.tar.gz
(10.3 kB
view details)
Built Distribution
File details
Details for the file cloud_storage_slim-0.3.3.tar.gz
.
File metadata
- Download URL: cloud_storage_slim-0.3.3.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c37f4e677582a5784adeddb5d4bcf68d1977f5c49cea12672e554d9e6885d01 |
|
MD5 | 1fa5ce52912df577e653936cb9f0794e |
|
BLAKE2b-256 | 716c68d02501f42b96223c39b07fc471d73aecca81cdccbd28c0f2e7929a6541 |
File details
Details for the file cloud_storage_slim-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: cloud_storage_slim-0.3.3-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b203f5529c797fc3d81520625fa85f1867d41a6acf2a89caf8f9a9e05a67d96 |
|
MD5 | ab1d42d85206b70204debe61d284666b |
|
BLAKE2b-256 | 504b3b29f3c6a3f16b5abadbfbc5ce771fbad0a250a5a6329997ec420a8a6d8b |