Pure Python EML and MSG converter
Project description
email2md
Convert email files (.eml, .msg) to Markdown (default) or HTML.
Install
pip install email2md
CLI usage
Prefix with uvx to run as a portable tool "without installing".
# markdown (default)
email2md message.msg
# HTML
email2md message.eml --html
# read from stdin
cat message.msg | email2md > message.md
# save attachments, reference image instead of inlining as b64
email2md message.msg --save-attachments --reference-images -o ./output > message.md
For all flags:
email2md --help
Python usage
from email2md import ConvertOptions, to_markdown
md = to_markdown(
"message.eml",
ConvertOptions(include_headers=True, save_attachments=False, inline_images=True),
)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file email2md-0.1.2.tar.gz.
File metadata
- Download URL: email2md-0.1.2.tar.gz
- Upload date:
- Size: 65.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceeefece89d46148aaa8b2d0cc771348eeaeeb4630d2c0a7d1ca09f347765b49
|
|
| MD5 |
e0b4127b65353d84e90bcf019b980605
|
|
| BLAKE2b-256 |
92bf8b001c1b312b5a2bbde410b0c0076939e4918b3a45da3ca1465d155061cf
|
Provenance
The following attestation bundles were made for email2md-0.1.2.tar.gz:
Publisher:
publish.yml on hewliyang/email2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
email2md-0.1.2.tar.gz -
Subject digest:
ceeefece89d46148aaa8b2d0cc771348eeaeeb4630d2c0a7d1ca09f347765b49 - Sigstore transparency entry: 772259989
- Sigstore integration time:
-
Permalink:
hewliyang/email2md@01cdb5e7520d104e014f6d965cd0c1cfaa92f670 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/hewliyang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01cdb5e7520d104e014f6d965cd0c1cfaa92f670 -
Trigger Event:
release
-
Statement type:
File details
Details for the file email2md-0.1.2-py3-none-any.whl.
File metadata
- Download URL: email2md-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390c9e0a164af743322e6a1751bf52a5e63c0a48ea24f6e8b448ad6a1087b89a
|
|
| MD5 |
ebb83b0a48b1f954ad578af0832a234b
|
|
| BLAKE2b-256 |
dd2c9cdb3df9ef2e2c0d7cebaabd1395a392d1c10909c18087a5fe67950fde8b
|
Provenance
The following attestation bundles were made for email2md-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on hewliyang/email2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
email2md-0.1.2-py3-none-any.whl -
Subject digest:
390c9e0a164af743322e6a1751bf52a5e63c0a48ea24f6e8b448ad6a1087b89a - Sigstore transparency entry: 772259997
- Sigstore integration time:
-
Permalink:
hewliyang/email2md@01cdb5e7520d104e014f6d965cd0c1cfaa92f670 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/hewliyang
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01cdb5e7520d104e014f6d965cd0c1cfaa92f670 -
Trigger Event:
release
-
Statement type: