X-Net Email CSS Inliner
The X-Net Email CSS Inliner is a HTML email inliner inspired by the ZURB CSS inliner.
Inlining is the process of prepping an HTML email for delivery to email clients Some email clients strip out your email's styles unless they are written inline with style tags. Here's what the inliner does:
- Inlining CSS: All of your CSS is embedded directly into the HTML as style attributes on each tag.
- CSS inside a @media block can't be inlined, so it's put in a
<style>tag.
You can use our great X-Net Django Email Template with the X-Net Email CSS Inliner
Installation
pip install x_net_email_css_inliner
Example
from x_net_email_css_inliner import EmailCSSInliner
raw_html = "<html>...</html>" # HTML email template
html_with_inline_css = str(EmailCSSInliner(raw_html))
Metadata
Release files for x-net-email-css-inliner 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| x-net-email-css-inliner-1.0.2.tar.gz | 35.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| x_net_email_css_inliner-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 42.8 kB
Release files / x-net-email-css-inliner-1.0.2.tar.gz
| Download URL | x-net-email-css-inliner-1.0.2.tar.gz |
|---|---|
| Size | 35.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c40bb4949f49f01f676b403437634b2c4826383b936c5cb8468f578329483ca
|
|
BLAKE2b-256 checksum How to use checksums |
c33f1be63507474cc033a61467efd57f9bbf583286aacd56bec6ca17e11d27b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
|
Release files / x_net_email_css_inliner-1.0.2-py3-none-any.whl
| Download URL | x_net_email_css_inliner-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd5ab4635f37d17e155ab02d60c624d3ae1be4dbe8eccc70ac4840469a8a92dd
|
|
BLAKE2b-256 checksum How to use checksums |
9a2f78f89e5ea019c97af4b63ca87d70cd078cfab452f62347ce703880a3b8fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12
|