python-premailer 0.5.7

Prepare HTML for email; embedd CSS to inline

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Other/Proprietary License
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Ralph Bean
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
python-premailer is a Python script which converts HTML with style tags into HTML with inline style attributes; gmail won't render nice without it!

Developer comments

I made it so I could send colorized git diffs of func-inventory around...

Use:

sudo pip install python-premailer

 python


>>> from pypremailer import Premailer
>>> head = '< html >< head >< style >foo {size:10px;}< /style >< /head >'
>>> body = 'bar< /span >< /html >'
>>> html = '%s%s' % ( head, body )
>>> p = Premailer(html)
>>> p.premail()
 < html >< head >< /head >< body >< span style="size: 10px" >bar< /span >< /body >< /html >


Get the source:

 http://github.com/ralphbean/python-premailer

On PyPI:

 http://pypi.python.org/pypi/python-premailer

Last updated on May 28th, 2011

requirements

#HTML converter #embed CSS #HTML #e-mail #converter #embed

Add your review!

SUBMIT