Metadata-Version: 2.1
Name: cloud-storage
Version: 1.5.0
Summary: Interface of S3 and Google Storgae
Home-page: https://github.com/Gatsby-Lee/cloud-storage
Author: Henley Kuang, Gatsby Lee
License: GPL-3.0
Keywords: cloud storage gcs s3
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
Requires-Dist: boto3
Requires-Dist: google-cloud-storage
Provides-Extra: dev
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-mock ; extra == 'dev'
Requires-Dist: moto ; extra == 'dev'
Requires-Dist: wheel ; extra == 'dev'
Requires-Dist: bpython ; extra == 'dev'
Requires-Dist: flake8 ; extra == 'dev'
Requires-Dist: autopep8 ; extra == 'dev'
Requires-Dist: pylint ; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: pytest-mock ; extra == 'test'
Requires-Dist: moto ; extra == 'test'


.. image:: https://img.shields.io/badge/License-GPL%20v3-blue.svg
   :target: https://www.gnu.org/licenses/gpl-3.0

.. image:: https://badge.fury.io/py/cloud-storage.svg
    :target: https://pypi.org/project/cloud-storage/

.. image:: https://img.shields.io/travis/Gatsby-Lee/cloud-storage.svg
   :target: https://travis-ci.org/Gatsby-Lee/cloud-storage


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
------------

.. code-block:: bash

    pip install cloud-storage


How to use
----------

.. code-block:: python

    # For Google Cloud Storage
    >>> from cloud_storage import GoogleCloudStorage
    >>> storage = GoogleCloudStorage()
    # For AWS S3
    >>> storage = S3CloudStorageBoto3()


.. code-block:: python

    # using factory
    >>> from cloud_storage import create_storage_client
    >>> gcs_storage = create_storage_client('gcs')
    >>> s3_storage = create_storage_client('s3')



