Port variant | v11 |
Summary | Turns CSS blocks into style attributes (3.11) |
BROKEN | |
Package version | 3.10.0 |
Homepage | https://github.com/peterbe/premailer |
Keywords | python |
Maintainer | Python Automaton |
License | Not yet specified |
Other variants | v12 |
Ravenports | Buildsheet | History |
Ravensource | Port Directory | History |
Last modified | 10 OCT 2023, 04:40:21 UTC |
Port created | 21 APR 2020, 22:22:44 UTC |
single | premailer
=========
Looking for sponsors
--------------------
This project is actively looking for corporate sponsorship. If you want
to help making this an active project consider [pinging
Peter] and we can talk about putting
up logos and links to your company.
Python versions
---------------
Our
`tox.ini PeterHej You want this: .. code:: htmlPeterHej premailer does this. It parses an HTML page, looks up style blocks and parses the CSS. It then uses the ``lxml.html`` parser to modify the DOM tree of the page accordingly. Warning! By default, premailer will attempt to download any external stylesheets by URL over the Internet. If you want to prevent this you can use the ``allow_network=False`` option. Getting started --------------- If you haven't already done so, install premailer first: :: $ pip install premailer Next, the most basic use is to use the shortcut function, like this: .. code:: python >>> from premailer import transform >>> print(transform(""" ... ... ... ...Peter...Hej ... ... """))PeterHej |
Build (only) |
python-pip:single:v11 autoselect-python:single:std |
Build and Runtime | python311:single:std |
Runtime (only) |
python-lxml:single:v11 python-cssselect:single:v11 python-cssutils:single:v11 python-requests:single:v11 python-cachetools:single:v11 |
main | mirror://PYPIWHL/b1/07/4e8d94f94c7d41ca5ddf8a9695ad87b888104e2fd41a35546c1dc9ca74ac |
No other ports depend on this one. |