Skip to main content

Paint the EML to a single PNG image.

Project description

eml2png

Build Status Coverage Status Documentation Status PyPI - Python Version PyPI - Wheel PyPI version PyPI - Downloads Docker Cloud Build Status Docker Pulls

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for eml2png, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size eml2png-0.0.2-py2.py3-none-any.whl (6.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size eml2png-0.0.2.tar.gz (14.6 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page