Paint the EML to a single PNG image.
Project description
eml2png
Paint the EML to a single PNG image.
Installing
You'll need wkhtmltopdf before you start working with eml2png, so install them first:
- Debian/Ubuntu:
sudo apt-get install wkhtmltopdf
- MacOSX
brew install wkhtmltopdf
- Windows and other options: check wkhtmltopdf homepage for binary installers or wiki page.
Install eml2png:
pip install eml2png
Usage
Simple example:
import eml2png
with open('message.png', 'wb') as f:
f.write(eml2png.to_png('message.eml'))
Export your wkhtmltopdf's install path if not /usr/bin/wkhtmltoimage
:
export WKHTMLTOIMAGE="/usr/local/bin/wkhtmltoimage"
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
eml2png-0.0.2.tar.gz
(14.6 MB
view details)
Built Distribution
File details
Details for the file eml2png-0.0.2.tar.gz
.
File metadata
- Download URL: eml2png-0.0.2.tar.gz
- Upload date:
- Size: 14.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96238bf0a88a49786104d1f5c7d3d4339b31937761736498df73cec110f59429 |
|
MD5 | 0d7ae4f7c982f09ac833724d3e0533da |
|
BLAKE2b-256 | b5c95de3f446048f42caa83c69acbc4cea5ee7ed30462203858495a6c7c85c66 |
File details
Details for the file eml2png-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: eml2png-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afb57242ed079dc3fa4e4f52b050b8e0fa2a714f3d66077ff3b28fab20ea9c3f |
|
MD5 | 23382e7a5d5e6f98daa90d274fcbea4d |
|
BLAKE2b-256 | 3646a49fd1c58b80140061205543b987197903aeed423b574cc529665062d405 |