Skip to main content

A modified `http` loader for thumbor which provides additional statistics (like width, height and url parsing)

Project description

An extended http loader for thumbor which introduces an additional statd counter original_image_with_size_fetch.$code.$host.$widthx$height.$parsedUrl

## Configuration

LOADER=”thumbor_hsl.loaders.http_loader”

### Optional query parsing

If you specify the HSL_REGEX_MATCH_URL option, you can provide a regex with a group which value will be appended in $parsedUrl

Example:

HSL_REGEX_MATCH_URL=”someQuery=(d+)”

For a given url, e.g. https://my-image?someQuery=10 the result of 10 will be appended to the counter.

## Install

pip install thumbor_hsl

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_hsl-0.0.2.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

thumbor_hsl-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file thumbor_hsl-0.0.2.tar.gz.

File metadata

  • Download URL: thumbor_hsl-0.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for thumbor_hsl-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d34eda7e482df5c6405056ac3eb45739936db9b3061fb4f8e2bbddf1314f31f5
MD5 a518bb433baff80e4c2dcf1254e9dc84
BLAKE2b-256 9f0a320acebe83cc1ac3e8d845d88fe68d426fdeeeb92b10b373b26b4a436316

See more details on using hashes here.

File details

Details for the file thumbor_hsl-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: thumbor_hsl-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for thumbor_hsl-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26ef641fc9359772f52d9779f43410a2fc33648416900a1f0225785449795a7f
MD5 653e38a6357489249c7ca7754ace186a
BLAKE2b-256 e7b94f4fdcfc026d959305a3698749fd146e0c7a0968814866e3677ba69b5214

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