python-premailer

Software Screenshot:
python-premailer
Software Details:
Version: 0.5.7
Upload Date: 12 May 15
Developer: Ralph Bean
Distribution Type: Freeware
Downloads: 2

Rating: nan/5 (Total Votes: 0)

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

Requirements:

  • Python

Other Software of Developer Ralph Bean

clip-the-gym
clip-the-gym

20 Feb 15

datanommer
datanommer

20 Feb 15

raptorizemw
raptorizemw

20 Feb 15

bugwarrior
bugwarrior

20 Feb 15

Comments to python-premailer

Comments not found
Add Comment
Turn on images!