eml2png-0.0.2
توضیحات
Paint the EML to a single PNG image.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | eml2png-0.0.2 |
| نام | eml2png |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | poipoii |
| ایمیل نویسنده | earth.sama@gmail.com |
| آدرس صفحه اصلی | https://github.com/poipoii/eml2png |
| آدرس اینترنتی | https://pypi.org/project/eml2png/ |
| مجوز | mit |
# eml2png
[](https://travis-ci.com/poipoii/eml2png)
[](https://coveralls.io/github/poipoii/eml2png?branch=master)
[](https://eml2png.readthedocs.io/en/latest/?badge=latest)


[](https://badge.fury.io/py/eml2png)

[](https://hub.docker.com/r/poipoii/eml2png)

Paint the EML to a single PNG image.
## Installing
You'll need [wkhtmltopdf](http://wkhtmltopdf.org/) before you start working with eml2png, so install them first:
* Debian/Ubuntu:
``` bash
sudo apt-get install wkhtmltopdf
```
* MacOSX
``` bash
brew install wkhtmltopdf
```
* Windows and other options: check [wkhtmltopdf homepage](http://wkhtmltopdf.org/) for binary installers or [wiki page](https://github.com/pdfkit/pdfkit/wiki/Installing-WKHTMLTOPDF).
Install eml2png:
``` python
pip install eml2png
```
## Usage
Simple example:
``` python
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`:
``` sh
export WKHTMLTOIMAGE="/usr/local/bin/wkhtmltoimage"
```
نیازمندی
| مقدار | نام |
|---|---|
| ==1.0.2 | imgkit |
| - | pytest |
| - | pytest-cov |
| - | pytest-xvfb |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.* | Python |
نحوه نصب
نصب پکیج whl eml2png-0.0.2:
pip install eml2png-0.0.2.whl
نصب پکیج tar.gz eml2png-0.0.2:
pip install eml2png-0.0.2.tar.gz