A lightweight cloud storage package for popular cloud storage services.
Project description
Cloud Storage Slim
Principles
- No complex operations, just focus on simple things.
- Inspired by rclone.
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_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
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
Built Distribution
Close
Hashes for cloud_storage_slim-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d254ca25eeba8b626f80ed95a364628012e6ee375cd9ef3debfce9471fbfc628 |
|
MD5 | adcaa3bec5e9d6cf098cc3b6a0fab164 |
|
BLAKE2b-256 | e4543bb1da8425c6337d11108959adf2abeb9572b5db8a833c1e7baeb0a27de7 |