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.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

tc_gcs-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file tc_gcs-0.1.1.tar.gz.

File metadata

  • Download URL: tc_gcs-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for tc_gcs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ed0e41bed9bc9c7aa0193257b038907176246d153b3b4072a70d4bbe8bc29875
MD5 5d2e1cc2312e0a267aaab6ae3c4730ed
BLAKE2b-256 420bc19905c90215039c377cc859977fd48868b4482005ac9f2b7e11262d480c

See more details on using hashes here.

File details

Details for the file tc_gcs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tc_gcs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for tc_gcs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c4ce8132a5ce7e9a4f40cf15c3d0414664220f9daa45dacf256e4fb675aedfb
MD5 302d08bfd313bd27d920b64c2394650a
BLAKE2b-256 0be01a22a1240922f1d91eb3c78028d28099f9341360530d9b8b69b3afd28a67

See more details on using hashes here.

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