Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pail

How to install pail

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pail
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.2 Available View build log
Linux (64-bit)
0.2 Available View build log
0.2 Available View build log
 
Author
License
LICENSE.txt
Dependencies
Imports
Lastest release
version 0.2 on May 27th, 2013

pail -- Python Adaptive Images Library

pail is a WSGI middleware providing Adaptive Images. Delivering small images to small devices.

System Message: WARNING/2 (<string>, line 7)

"raw" directive disabled.

.. raw:: html

  <div>
    <a href="https://travis-ci.org/ulif/pail">
      <img src="https://travis-ci.org/ulif/pail.png?branch=develop" /></a>
  </div>

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.

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

Subscribe to package updates

Last updated May 27th, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.