A thumbor extension for DASH
Project description
thumbor_dash
A thumbor server extension for DASH
Usage
Requirements
- Python >= 3.9
- pip >= 21.1
1. Clone the repo
git clone https://github.com/mayoreee/thumbor_dash.git
cd thumbor_dash
2. Create a virtual environment
python3 -m venv /path/to/new/virtual/environment
Then, activate the virtual environment as described here
3. Install thumbor_dash and its dependencies
pip install .
Then, activate the virtual environment
4. Create a configuration file
thumbor-config > thumbor.conf
5. Add to thumbor.conf
file
import thumbor_dash
from thumbor.handler_lists import BUILTIN_HANDLERS
HANDLER_LISTS = BUILTIN_HANDLERS + [
'thumbor_dash.handler_lists.dashauth'
]
DASHAUTH_ROUTE = '/dashauth'
URL_SIGNER = 'thumbor_dash.url_signers.base64_hmac_sha1'
ALLOW_UNSAFE_URL = False
# Set allowed thumbnail size
MIN_WIDTH = 1
MIN_HEIGHT = 1
MAX_WIDTH = 1200
MAX_HEIGHT = 800
6. Run thumbor server with the configuration file
thumbor --conf=thumbor.conf
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
thumbor_dash-0.0.2.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for thumbor_dash-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64c1f1e7132cba704121eb8ad956ca49bd3f81af39ece89cd99b75e9eab7ffc3 |
|
MD5 | 84a27bca133b12561361933c381b1ad9 |
|
BLAKE2b-256 | bfa50189bebe14748c466ff90fc8e2c7d12b8906e69eb3d609bb3f5e3fa6d7b2 |