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.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6ac146ef6e23edbbdbe9f70fd5d8b34d4532291b76ce33400c47f57b30220b |
|
MD5 | 07430a0c0da11f728ba715c0a9f7aeb1 |
|
BLAKE2b-256 | 4b282dfdb7c4994eb6cb18b49a28d4eeccfad599abd99068245badd684abfd8d |