Skip to main content

BeautifulEmail is a python package that makes it easy and quick to save pandas dataframes in beautifully formatted excel files. BeautifulEmail is the Openpyxl for Data Scientists with a deadline.

Project description

BeautifulEmail

⚠️🏗️️ Note: This is only the first version - actively working on additional features!

BeautifulEmail is a python package that makes it easy and quick to send beautifully formatted emails with beuatiful tables/dataframes. BeautifulEmail is for Data Scientists with a deadline.

Getting it

$ pip install beautifulemail

Update Package: (execute regularly to get the latest features)

$ pip install beautifulemail --upgrade

How to use:

from beautifulemail import Connection, DataFrameToHTML

df_html = DataFrameToHTML(df=styled)
df_html.col_num_fmt_auto()
df_html.col_styles(column=['last_contact', 'revenue'], classes=['bg_light_blue'])

email_body_markdown = f"""
Hi,

This is a test email with **bold text**, *italic text*, ~~strikethrough text~~, <mark>highlited text</mark>, [hyperlink text](https://www.google.com), and text that could be footnoted<note>[1]</note>.

# This would be a Heading 1 of an ordered list

1. First step
2. Second step
3. Third step

{df_html}

Best wishes,
Me
    """

    with Connection(host='smtp.gmail.com', port=465, ssl=True, user='myemai@gmail.com', password='my_password') as conn:
        status = conn.send_email(
            from_='myemai@gmail.com',
            to_='youremai@gmail.com',
            subject='Email Subject',
            body_markdown=email_body_markdown,
            attachments=['../README.md'],
            dry_run=False
            )



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

beautifulemail-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

beautifulemail-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file beautifulemail-0.1.0.tar.gz.

File metadata

  • Download URL: beautifulemail-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for beautifulemail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12159c514ff442a46596806a7ca359f721f0ceda848f04497cbee808a9791a0f
MD5 a9629d94416afec2dbb9a5b602e76543
BLAKE2b-256 b6b558f49fae542cfe80d2c9f6f9bb8d2a77e0c25e93ee7e494d100055b7af05

See more details on using hashes here.

File details

Details for the file beautifulemail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: beautifulemail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for beautifulemail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 181a6fa09cdd71bd12e19f5e493ffe96b5e14a1966ee1dc244d0a24c75d2d0c2
MD5 f02a533fa638f9e177fa00942d79ec24
BLAKE2b-256 cab1f75fccb17267139d815ae73f3492ae9319869559208de9e6eb52815003a4

See more details on using hashes here.

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