Skip to content

Gatsby-Lee/cloud-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Storage

Why this is built?

In order to provide interface for upload, download, and exceptions for AWS S3 and GCS.

If you have use cases using both Cloud Storage in one project, You might want to try this package.

I'm also using this on production as well.

Installation

pip install cloud-storage

How to use

# For Google Cloud Storage
>>> from cloud_storage import GoogleCloudStorage
>>> storage = GoogleCloudStorage()
# For AWS S3
>>> storage = S3CloudStorageBoto3()
# using factory
>>> from cloud_storage import create_storage_client
>>> gcs_storage = create_storage_client('gcs')
>>> s3_storage = create_storage_client('s3')