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_PROJECT_ID = '' # set your google cloud project id RESULT_STORAGE_GCS_BUCKET_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
Built Distribution
File details
Details for the file thumbor-gcs-0.0.4.tar.gz
.
File metadata
- Download URL: thumbor-gcs-0.0.4.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a943bb67cc167b0dbc568ce82c0f4b7eca47fb13415c11afbc4cad390f013fd |
|
MD5 | ffae870e513eb15ee21ae9a0bcc68158 |
|
BLAKE2b-256 | 4cb8b75bcf541f73be62ecb01789d351e313da28e2f360ed9b97ca112464a199 |
File details
Details for the file thumbor_gcs-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: thumbor_gcs-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e49ae96725e81f126adb9b8b2d9b2cd93d1bae9395ecff16b2c408032af14b |
|
MD5 | 7ccdc75b62ecaa426c9e984a86624732 |
|
BLAKE2b-256 | 05a8695fcbd4e3f8249517f8b99fca3e414503afb7c83c630877902926e893a4 |