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
Release history Release notifications | RSS feed
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_hsl-0.0.3.tar.gz
.
File metadata
- Download URL: thumbor_hsl-0.0.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f917ed44767ec3c0429d3c90f277dfaec61b04c99542c1e357986d26c27b8e |
|
MD5 | d073e5c7ac2495fbf99370ca35509bca |
|
BLAKE2b-256 | 5bb1dd8d5cb30456a79ca10704ff912974cdb4536949b4521e6bd4bfefb82c3d |
File details
Details for the file thumbor_hsl-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: thumbor_hsl-0.0.3-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b10d7d92df8d3c4a11a0ae10d9fa3173f6782e0422766abea0e63ae61e1b404 |
|
MD5 | 851b23b8d629c62583ca461284a533b4 |
|
BLAKE2b-256 | 8c52c7d6ffc94fbf560cd7eae6f6de4a7c6e838b4aedcdf10b8d2425b551abf4 |