Inmailer
Pymailer is a Python package that provides email utilities, including CSS inlining for HTML emails.
Features
- Convert in-file CSS (inside
<style>tags) into inline styles - Retain non-inlineable styles (e.g.,
@media,:hover) in<style> - Maintain HTML structure while applying styles efficiently
Installation
pip install inmailer
Usage
from inmailer import inline_css
html_content = """<html><head><style>h1 { color: red; }</style></head><body><h1>Hello</h1></body></html>"""
processed_html = inline_css(html_content)
print(processed_html)
Contributing
Contributions are welcome!
To contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature-branch) - Open a Pull Request
License
This project is licensed under the MIT License.
Metadata
Release files for inmailer 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inmailer-0.1.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| inmailer-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / inmailer-0.1.4.tar.gz
| Download URL | inmailer-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caa3c014a56aa71c97eb8ceba541e9cfb1a48a2e99b4596d957913f87f675fae
|
|
BLAKE2b-256 checksum How to use checksums |
c3b2948b9b82c73688f0ce6b1b1ed5c4c6b464c29297a08df0d522bab7445b5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / inmailer-0.1.4-py3-none-any.whl
| Download URL | inmailer-0.1.4-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
956ba3e606dbe10e7a1e38b9597f16d7dde3c0d0eb9590ad448d24b25a6e5259
|
|
BLAKE2b-256 checksum How to use checksums |
5ec1408806a9667a8d8448f290b896756658c0e0ed52d8bfd599debd065eeda0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|