Skip to main content

Email Generator

Installation (PyPI)

pip3 install email-draft-generator

Building from source

Install the build tool with pip and run python3 -m build to build the package.

Usage (command line)

The utility provides two command-line binaries: email-generator and email-list-parser.

email-generator

email-generator takes a JSON-formatted list of E-mail addresses and recipient names, formats them according to the template JSON, and uploads them to Gmail. To set up the Google API, run it once (you will need to provide a valid list of E-mail addresses for it to run), and it will guide you through setting this up. Most of the usage specifics are described in the usage help, which you can show by running email-generator -h.

email-list-parser

email-list-parser takes a CSV formatted list or a newline-seperated list of values and turn it into a JSON file which can be piped into email-generator.

Text file format

The values should be formatted as follows

Company Name 1
e-mail@company1.com
Company Name 2
e-mail@company2.com
Company Name 3
e-mail@company3.com
...

CSV format

The CSV file should have the keys in the order name,email

Template Format

The E-mail template is a JSON file with the following keys

Key Value
subject (formatted) E-mail subject
body (formatted) E-mail body
attachments (optional) Paths to any attachments that should be included

Formatted fields can include the following variables

Variable Data
{name} Company name
{email} Company E-mail

Installation (scripts)

Download the latest release as a tar.gz file.

Setup

Build program

Run setup.sh (can be run by simply double-clicking on the file).

Set up the template

Update the email template in data/template.json according to the template format.

Google API

Run the program once, and it will guide you through setting up the Google API.

Usage (scripts)

Prepare data

Copy and paste the table into data/email-list.txt.

Run the program

Run run.sh (can be run by double-clicking as well) The first time it is run, you will need to authenticate with the account that you want to upload the drafts to. A browser window should be opened automatically to do this in (if it is not, copy and paste the URL from the terminal window into your browser). The authentication flow may not work in Firefox or other Gecko-based browsers, so try Chrome, Safari, or another Chromium- or Webkit-based browser if it doesn't work for you.

Usage (GUI)

The utility provides two GUI binaries: email-generator-gui and email-template-editor-gui. These take no command line arguments.

Metadata

Release files for email-draft-generator 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email-draft-generator 0.1.2
File Size Uploaded Provenance Actions
email_draft_generator-0.1.2.tar.gz 174.9 kB Without provenance Details for email_draft_generator-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for email-draft-generator 0.1.2
File Interpreter ABI Platform Actions
email_draft_generator-0.1.2-py3-none-any.whl Python 3 none any Details for email_draft_generator-0.1.2-py3-none-any.whl

Total release size: 194.7 kB

Release files / email_draft_generator-0.1.2.tar.gz

Download URL email_draft_generator-0.1.2.tar.gz
Size 174.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2df08b89c93a656b8982714428de1f42f9a38fa1876458fed97f880303641594
BLAKE2b-256 checksum
How to use checksums
0d4a2a1223bbe4caf4218e15d06d9618833b4dd436f97230e72b4f7387232fc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.5

Release files / email_draft_generator-0.1.2-py3-none-any.whl

Download URL email_draft_generator-0.1.2-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2b707447ef07c41390aca8420afc94b62e9b3e1174ef259099ec3b9d6ddcaa5
BLAKE2b-256 checksum
How to use checksums
9e3dd2d50005ac0373f901341b13522fda389c5799786e6d945671f3aab58e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.5

Security for email-draft-generator 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page