thumbor-gcs


Namethumbor-gcs JSON
Version 0.0.9 PyPI version JSON
download
home_pagehttps://github.com/jjonline/thumbor-gcs
SummaryThumbor Loader and Result Storage for Google Cloud Storage(GCS)
upload_time2025-07-11 06:05:35
maintainerJea Yang
docs_urlNone
authorJea Yang
requires_python>=3.7
licenseApache-2.0 license
keywords thumbor google cloud platform google-cloud-storage imaging thumbnail imagemagick
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            thumbor-gcs
===========

Thumbor Loader and Result Storage for `Google Cloud
Storage <https://cloud.google.com/storage>`__ ,it can also be
abbreviated as ``gcs``

   📢 Attention

   The thumbor storage can be customized as follows:
   `Storages <https://thumbor.readthedocs.io/en/latest/custom_storages.html>`__,
   `Image
   Loaders <https://thumbor.readthedocs.io/en/latest/custom_loaders.html>`__,
   `Result
   Storages <https://thumbor.readthedocs.io/en/latest/custom_result_storages.html>`__.

   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 <https://googleapis.dev/python/storage/latest/index.html>`__

Contribution
============

You can make a pull requests
`HERE <https://github.com/jjonline/thumbor-gcs/pulls>`__, 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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jjonline/thumbor-gcs",
    "name": "thumbor-gcs",
    "maintainer": "Jea Yang",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "jjonline@jjonline.cn",
    "keywords": "thumbor, google cloud platform, google-cloud-storage, imaging, thumbnail, imagemagick",
    "author": "Jea Yang",
    "author_email": "jjonline@jjonline.cn",
    "download_url": "https://files.pythonhosted.org/packages/d9/5e/d6331e3489ba73da82514ebd1d4eb62497aa7a71bb03c8038682bc71dae0/thumbor-gcs-0.0.9.tar.gz",
    "platform": null,
    "description": "thumbor-gcs\n===========\n\nThumbor Loader and Result Storage for `Google Cloud\nStorage <https://cloud.google.com/storage>`__ ,it can also be\nabbreviated as ``gcs``\n\n   \ud83d\udce2 Attention\n\n   The thumbor storage can be customized as follows:\n   `Storages <https://thumbor.readthedocs.io/en/latest/custom_storages.html>`__,\n   `Image\n   Loaders <https://thumbor.readthedocs.io/en/latest/custom_loaders.html>`__,\n   `Result\n   Storages <https://thumbor.readthedocs.io/en/latest/custom_result_storages.html>`__.\n\n   This project currently only implements ``Image Loaders`` and\n   ``Result Storages``\n\nInstallation\n============\n\n::\n\n   pip install thumbor-gcs\n\nAuthentication\n==============\n\nAuthentication is handled by the Google Cloud Storage SDK, see\n``google-cloud-storage`` SDK\n`documentation <https://googleapis.dev/python/storage/latest/index.html>`__\n\nContribution\n============\n\nYou can make a pull requests\n`HERE <https://github.com/jjonline/thumbor-gcs/pulls>`__, thank you for\nyour contribution.\n\nConfiguration\n=============\n\nYou should create the corresponding bucket first in google cloud storage\n\nLoader settings\n---------------\n\n::\n\n   LOADER = 'thumbor_gcs.loader.gcs_loader'\n   # set your google cloud storage bucket name\n   LOADER_GCS_BUCKET_ID = ''\n   # set your google cloud project id\n   LOADER_GCS_PROJECT_ID = ''\n   LOADER_GCS_ROOT_PATH = ''\n\n..\n\n   Assuming ``LOADER_GCS_ROOT_PATH`` is set to ``original``, if the PATH\n   of the URL is ``/public/sample.png``, then the file storage path in\n   the bucket of google cloud storage is ``original/public/sample.png``\n\nResult storage settings\n-----------------------\n\n::\n\n   RESULT_STORAGE = 'thumbor_gcs.result_storage.gcs_result_storage'\n   # set your google cloud storage bucket name\n   RESULT_STORAGE_GCS_BUCKET_ID = ''\n   # set your google cloud project id\n   RESULT_STORAGE_GCS_PROJECT_ID = ''\n   RESULT_STORAGE_GCS_ROOT_PATH = ''\n\nOther\n=====\n\n   If your ``Image Loaders`` and ``Result Storages`` use the same\n   bucket, please use the two configuration items\n   ``LOADER_GCS_ROOT_PATH`` and ``RESULT_STORAGE_GCS_ROOT_PATH`` as\n   appropriate, and pay attention to the file storage path (also called\n   ``object path``) in this bucket.\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0 license",
    "summary": "Thumbor Loader and Result Storage for Google Cloud Storage(GCS)",
    "version": "0.0.9",
    "project_urls": {
        "Homepage": "https://github.com/jjonline/thumbor-gcs"
    },
    "split_keywords": [
        "thumbor",
        " google cloud platform",
        " google-cloud-storage",
        " imaging",
        " thumbnail",
        " imagemagick"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b862b1738cec7be1ca55857f7e19cf86416843087a9762e7b01bf64a9d15a7ea",
                "md5": "bee53dc79322c4de61b6a1e61739d643",
                "sha256": "5cbed87f92b92145bec178b706b7a95f5d9971d997a0d008147178b528edbd37"
            },
            "downloads": -1,
            "filename": "thumbor_gcs-0.0.9-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bee53dc79322c4de61b6a1e61739d643",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.7",
            "size": 10652,
            "upload_time": "2025-07-11T06:05:34",
            "upload_time_iso_8601": "2025-07-11T06:05:34.162627Z",
            "url": "https://files.pythonhosted.org/packages/b8/62/b1738cec7be1ca55857f7e19cf86416843087a9762e7b01bf64a9d15a7ea/thumbor_gcs-0.0.9-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d95ed6331e3489ba73da82514ebd1d4eb62497aa7a71bb03c8038682bc71dae0",
                "md5": "66d6b6406c3b3b8d51d3b1a1f913f73c",
                "sha256": "f6c015213313601a886a42bd6a9cd20e19b3377a07e6e1956219773cafbbee71"
            },
            "downloads": -1,
            "filename": "thumbor-gcs-0.0.9.tar.gz",
            "has_sig": false,
            "md5_digest": "66d6b6406c3b3b8d51d3b1a1f913f73c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 10450,
            "upload_time": "2025-07-11T06:05:35",
            "upload_time_iso_8601": "2025-07-11T06:05:35.259596Z",
            "url": "https://files.pythonhosted.org/packages/d9/5e/d6331e3489ba73da82514ebd1d4eb62497aa7a71bb03c8038682bc71dae0/thumbor-gcs-0.0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-11 06:05:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jjonline",
    "github_project": "thumbor-gcs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "thumbor-gcs"
}
        
Elapsed time: 0.43008s