Skip to main content

A small package to provide a predefined base host for HTTP loader

Project description

Thumbor HTTP Loader Prefix

Add a prefix to the HTTP Loader so that you don't have to pass the entire URL

Installation

# master branch
pip install -e git+https://github.com/jcord04/thumbor-http-load-prefix.git@master#egg=tc_http_loader_prefix

# latest stable
pip install tc_http_loader_prefix

Running Test

in the project root, run

pytest

Configuration

# thumbor.conf
LOADER = 'tc_http_loader_prefix.loader'

TC_HTTP_LOADER_PREFIX = 'https://your-domain/'

# When making a request like this
https://domain.example/unsafe/400x400/image.jpg

#The image is fetched from 
https://your-domain/image.jpg

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_http_loader_prefix-0.1.4.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tc_http_loader_prefix-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file tc_http_loader_prefix-0.1.4.tar.gz.

File metadata

  • Download URL: tc_http_loader_prefix-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tc_http_loader_prefix-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a3a5eb9f22b8c6544f806d878819af3cb4173e4b174630344534ff6f6cd57bbd
MD5 c69690480851c68b40e39237b524e56d
BLAKE2b-256 adf545ab54e3a3ab57f99ea4efd4bc82578b2db57581267df6607e20a5733163

See more details on using hashes here.

Provenance

The following attestation bundles were made for tc_http_loader_prefix-0.1.4.tar.gz:

Publisher: python-publish.yml on jcord04/thumbor-http-load-prefix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tc_http_loader_prefix-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for tc_http_loader_prefix-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2f57958220300bea584ce366cc9dcb1c010fbf6ea8f824afdf4c41319b3ebf79
MD5 38d515be04738bbe4456921e405cf40d
BLAKE2b-256 60189a7e6d919d99fcdbad51d2a99057bbd29dec1d09eb164eb83b3d09d9ea5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tc_http_loader_prefix-0.1.4-py3-none-any.whl:

Publisher: python-publish.yml on jcord04/thumbor-http-load-prefix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page