Skip to main content

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"

Release files for eml2png 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eml2png 0.0.2
File Size Uploaded
eml2png-0.0.2.tar.gz 14.6 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for eml2png 0.0.2
File Interpreter ABI Platform
eml2png-0.0.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 14.6 MB

Release files / eml2png-0.0.2.tar.gz

Download URL eml2png-0.0.2.tar.gz
Size 14.6 MB
Tags Source
SHA-256 checksum
How to use checksums
96238bf0a88a49786104d1f5c7d3d4339b31937761736498df73cec110f59429
BLAKE2b-256 checksum
How to use checksums
b5c95de3f446048f42caa83c69acbc4cea5ee7ed30462203858495a6c7c85c66
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / eml2png-0.0.2-py2.py3-none-any.whl

Download URL eml2png-0.0.2-py2.py3-none-any.whl
Size 6.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
afb57242ed079dc3fa4e4f52b050b8e0fa2a714f3d66077ff3b28fab20ea9c3f
BLAKE2b-256 checksum
How to use checksums
3646a49fd1c58b80140061205543b987197903aeed423b574cc529665062d405
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page