
Research
/Security News
Malicious npm Packages Target WhatsApp Developers with Remote Kill Switch
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
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.
⚠️🏗️️ 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.
Email Example:
![]()
$ pip install beautifulemail
Update Package: (execute regularly to get the latest features)
$ pip install beautifulemail --upgrade
from beautifulemail import Connection, DataFrameToHTML
df_styled = ...
df_html = DataFrameToHTML(df=df_styled)
# format numbers automatically
df_html.col_num_fmt_auto()
# add background styling to columns
df_html.col_styles(column=['last_contact', 'revenue'], classes=['bg_light_blue'])
df_html.col_styles(column=['last_contact'], classes=['text_color_amber'])
# use markdown to write email - more infoss here: www.markdownguide.org/cheat-sheet/
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}
Embedded image:
<img src="cid:image1" style="width: 100px;">
Best wishes,
Me
"""
# connect to email server
with Connection(host='smtp.gmail.com', port=465, ssl=True, user='myemai@gmail.com', password='my_password') as conn:
# send email
status = conn.send_email(
from_='my_emai@gmail.com',
to_=['your_emai@gmail.com', 'second_emai@gmail.com'],
subject='Email Subject',
body_markdown=email_body_markdown,
attachments=['./README.md'],
embedded_imgs=['./email_preview.jpg'],
dry_run=False
)
# status contains all the email information including the html body
print('Email sent:', status)
# save sent email documntation/summary as excel
conn.save_sent_email_summary('sent_emails.xlsx')
FAQs
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.
We found that beautifulemail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.