Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    python-premailer 0.5.7

    Download button

    No screenshots available
    Downloads: 201  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ralph Bean | More programs
    Other/Proprietary Li... / FREE
    May 28th, 2011, 05:47 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    python-premailer description

    Prepare HTML for email; embedd CSS to inline

    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


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    HTML converter | embed CSS | HTML | e-mail | converter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM