Skip to main content

A simple Thumbor custom storage for Google Cloud Storage

Project description

Thumbor Google Cloud Storage

Thumbor Storage, Thumbor Loader and Thumbor Result Storage for Google Cloud Storage, aka GCS.

The thumbor storage can be customized as follows: Storages, Image Loaders, Result Storages.

Installation

pip install tc-gcs

Authentiation

Authentication is handled by the Google Cloud Storage SDK, see google-cloud-storage SDK documentation.

Configuration

Storage settings

TC_GCS_STORAGE_PROJECT_ID = '' # GCS project id for Storage
TC_GCS_STORAGE_BUCKET_ID = '' # GCS bucket id for Storage
TC_GCS_STORAGE_ROOT_PATH = '' # GCS path prefix for Storage bucket

Key settings

TC_GCS_RANDOMIZE_KEYS=False # Adds some randomization in the GCS keys for the Storage and Result Storage. Defaults to False for Backwards Compatibility, set it to True for performance.
TC_GCS_ROOT_IMAGE_NAME='root_image' # Sets a default name for requested images ending with a trailing /. Those images will be stored in result_storage and storage under the name set in this configuration.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tc_gcs-0.0.5.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

tc_gcs-0.0.5-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page