Skip to main content

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

email2md-0.1.1.tar.gz (65.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

email2md-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file email2md-0.1.1.tar.gz.

File metadata

  • Download URL: email2md-0.1.1.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

Hashes for email2md-0.1.1.tar.gz
Algorithm Hash digest
SHA256 09e0fb47fa18bf0a26868362fd66b26a479e800530b55c8a73ac335873e44d7e
MD5 4c6dc699fc4ee7a3826caa3ee67fa349
BLAKE2b-256 c54a66dd12390bcdd6dec9d503f5caa5e0fd6b0084c1aff38e409df1d4a69f4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.1.tar.gz:

Publisher: publish.yml on hewliyang/email2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file email2md-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: email2md-0.1.1-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

Hashes for email2md-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b9e834600055bf34a83d4887c4929851ae9b0163bd936a66b2403f4cd7befdd
MD5 55e3320ce4e67a7a1c4963660923c3f7
BLAKE2b-256 305c5b488bf2d58e93600ecb55933c524f7e709bd4f1f1ce208fd3c88ef1679e

See more details on using hashes here.

Provenance

The following attestation bundles were made for email2md-0.1.1-py3-none-any.whl:

Publisher: publish.yml on hewliyang/email2md

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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