Skip to main content

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.

Metadata

Release files for thumbor-gcs 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thumbor-gcs 0.0.10
File Size Uploaded
thumbor-gcs-0.0.10.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thumbor-gcs 0.0.10
File Interpreter ABI Platform
thumbor_gcs-0.0.10-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 21.1 kB

Release files / thumbor-gcs-0.0.10.tar.gz

Download URL thumbor-gcs-0.0.10.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fbb42bb1ba94fb315cf50eaa53978aa933dc6387ce1aaa58012f8f6a4af75cca
BLAKE2b-256 checksum
How to use checksums
9e0c85aee912726a6a6f1a70988a713b8965657cf5b5116613f6406f55f7ca95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / thumbor_gcs-0.0.10-py2.py3-none-any.whl

Download URL thumbor_gcs-0.0.10-py2.py3-none-any.whl
Size 10.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
da4a850e4f3964fa0ba21cdaf3cfba402b1ca0e2094d55c29e127c074968847d
BLAKE2b-256 checksum
How to use checksums
3b1c90ede39310a2d4b5d12a703eb7cd5b00e4f3d5725904f58a5a69b0d3a551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.0.10 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page