pail – Python Adaptive Images Library
pail is a WSGI middleware providing Adaptive Images. Delivering small images to small devices.
It detects your visitor’s screen size and automatically creates, and delivers device appropriate re-scaled versions of your web page’s embeded HTML images. No (major) mark-up changes needed. It is intended for use with Responsive Designs and to be combined with Fluid Image techniques.
This package is based on the ideas of Matt Wilcox and (more loosely) on his PHP script for the same purpose. Matt is in no way to blame for any shortcomings of this Python port.
pail provides special support for use with Paste.
Please note, that this package is still in a very early state and changes, also to the API, are likely to happen in near future.
Comments and patches are welcome. Please send these to uli at gnufix dot de.
Installation
The package can be installed by:
$ pip install pail
Afterwards you should be able to use pail in any WSGI environment. See the documentation for details.
Links
Full documentation (including deployment examples)
Changes
0.2 (2013-05-17)
Add very plain mobile detection. Now, if no device width is given (via cookie) detected mobile devices get images with the smallest predefined resolution while non-mobile devices get the images with the largest predefined resolution.
Removed zc.buildout stuff (we do not need it).
0.1 (2013-05-07)
First implementation based on Matt Wilcox’ PHP script.
Download
Metadata
Release files for pail 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pail-0.2.tar.gz | 22.8 kB | Without provenance | Details for pail-0.2.tar.gz |
Release files / pail-0.2.tar.gz
| Download URL | pail-0.2.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
23d47e37c3b4da6d3036086bc19f23b0df8acd91a50d1410855f4546c39770e7
|
|
BLAKE2b-256 checksum How to use checksums |
9d33803b14a709838e578ded7460ef0dcd086ac91df509fe168d5a99e1dbb7ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pail 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.