Skip to main content

Thumbor Loader and Result Storage for Google Cloud Storage(GCS)

Project description

thumbor-gcs

Thumbor Loader and Result Storage for Google Cloud Storage ,it can also be abbreviated as gcs

📢 Attention

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

This project currently only implements Image Loaders and Result Storages

Installation

pip install thumbor-gcs

Authentication

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

Contribution

You can make a pull requests HERE, thank you for your contribution.

Configuration

You should create the corresponding bucket first in google cloud storage

Loader settings

LOADER = 'thumbor_gcs.loader.gcs_loader'
# set your google cloud storage bucket name
LOADER_GCS_BUCKET_ID = ''
# set your google cloud project id
LOADER_GCS_PROJECT_ID = ''
LOADER_GCS_ROOT_PATH = ''

Assuming LOADER_GCS_ROOT_PATH is set to original, if the PATH of the URL is /public/sample.png, then the file storage path in the bucket of google cloud storage is original/public/sample.png

Result storage settings

RESULT_STORAGE = 'thumbor_gcs.result_storage.gcs_result_storage'
# set your google cloud storage bucket name
RESULT_STORAGE_GCS_BUCKET_ID = ''
# set your google cloud project id
RESULT_STORAGE_GCS_PROJECT_ID = ''
RESULT_STORAGE_GCS_ROOT_PATH = ''

Other

If your Image Loaders and Result Storages use the same bucket, please use the two configuration items LOADER_GCS_ROOT_PATH and RESULT_STORAGE_GCS_ROOT_PATH as appropriate, and pay attention to the file storage path (also called object path) in this bucket.

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

thumbor-gcs-0.0.6.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

thumbor_gcs-0.0.6-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file thumbor-gcs-0.0.6.tar.gz.

File metadata

  • Download URL: thumbor-gcs-0.0.6.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for thumbor-gcs-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7eaf20c8f519f17148bb7f3ba23774e469079c4a79678aebc1babead274b6c86
MD5 76710dbc2e329e10d7b7d7bd2e687997
BLAKE2b-256 1144e19f90db4497defdb2c705bb5a3777cdd8adf88d62ff5c2f985f1efb8332

See more details on using hashes here.

File details

Details for the file thumbor_gcs-0.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for thumbor_gcs-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f37116da2ed5be534ad5170d0e47617d7e8c557eb1b3800520bd1193e97a42e
MD5 204bafa5e2514ae08a1834d2ddf3a9ea
BLAKE2b-256 f2c119e3b2d330dbba38a9a64f73d6afe8a72e23fb1e8c4eea241806874d6907

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