A Python package that offers email utilities.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
inmailer-0.1.4.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inmailer-0.1.4.tar.gz.
File metadata
- Download URL: inmailer-0.1.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa3c014a56aa71c97eb8ceba541e9cfb1a48a2e99b4596d957913f87f675fae
|
|
| MD5 |
8daabeb28a5890fef247231beb1616b9
|
|
| BLAKE2b-256 |
c3b2948b9b82c73688f0ce6b1b1ed5c4c6b464c29297a08df0d522bab7445b5b
|
File details
Details for the file inmailer-0.1.4-py3-none-any.whl.
File metadata
- Download URL: inmailer-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
956ba3e606dbe10e7a1e38b9597f16d7dde3c0d0eb9590ad448d24b25a6e5259
|
|
| MD5 |
e229abc79b83789031c851c65d94714a
|
|
| BLAKE2b-256 |
5ec1408806a9667a8d8448f290b896756658c0e0ed52d8bfd599debd065eeda0
|