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.

Source Distribution

eml2png-0.0.2.tar.gz (14.6 MB view hashes)

Uploaded Source

Built Distribution

eml2png-0.0.2-py2.py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page