Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gatsby-lee/cloud-storage
Providing interface for GCS, S3
https://github.com/gatsby-lee/cloud-storage
boto3 cloud-storage gcs interface s3
Last synced: about 1 month ago
JSON representation
Providing interface for GCS, S3
- Host: GitHub
- URL: https://github.com/gatsby-lee/cloud-storage
- Owner: Gatsby-Lee
- License: gpl-3.0
- Created: 2019-06-13T00:13:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T23:52:11.000Z (over 4 years ago)
- Last Synced: 2024-08-09T21:23:38.455Z (5 months ago)
- Topics: boto3, cloud-storage, gcs, interface, s3
- Language: Python
- Homepage:
- Size: 69.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
.. 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-storageCloud 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')