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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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

Hashes for eml2png-0.0.2.tar.gz
Algorithm Hash digest
SHA256 96238bf0a88a49786104d1f5c7d3d4339b31937761736498df73cec110f59429
MD5 0d7ae4f7c982f09ac833724d3e0533da
BLAKE2b-256 b5c95de3f446048f42caa83c69acbc4cea5ee7ed30462203858495a6c7c85c66

See more details on using hashes here.

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

Hashes for eml2png-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 afb57242ed079dc3fa4e4f52b050b8e0fa2a714f3d66077ff3b28fab20ea9c3f
MD5 23382e7a5d5e6f98daa90d274fcbea4d
BLAKE2b-256 3646a49fd1c58b80140061205543b987197903aeed423b574cc529665062d405

See more details on using hashes here.

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