penguin-email
Pluggable email sending library for Penguin Tech applications.
Features
- Gmail REST API transport (OAuth2, primary)
- SMTP transport (SSL / STARTTLS / PLAIN with
InsecureConnectionWarning) - Fluent
EmailMessagebuilder with Jinja2 templating - Built-in templates: welcome, notification, transactional, alert, password_reset, form
- Form builder and table builder helpers
- Full attachment support (files, bytes, inline images)
- Formal
EmailTransportProtocol — add new transports with zero core changes
Installation
pip install penguin-email # SMTP + templates only
pip install "penguin-email[gmail]" # adds Gmail REST API support
Quick Start
from penguin_email import EmailClient, EmailMessage, SmtpTransport, SmtpMode
transport = SmtpTransport(host="smtp.example.com", mode=SmtpMode.STARTTLS,
username="user", password="pass")
client = EmailClient(transport)
result = client.send(
EmailMessage()
.from_addr("sender@example.com")
.to("recipient@example.com")
.subject("Hello!")
.template("welcome", name="Alice", app_name="MyApp", login_url="https://app.example.com/login")
)
print(result.success, result.message_id)
Gmail Transport
from penguin_email import EmailClient, EmailMessage, GmailTransport
transport = GmailTransport.from_env() # reads GMAIL_* env vars
client = EmailClient(transport)
License
AGPL-3.0 — see LICENSE.md
Metadata
Release files for penguin-email 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| penguin_email-0.1.0.tar.gz | 36.2 kB | With provenance | Details for penguin_email-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| penguin_email-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for penguin_email-0.1.0-py3-none-any.whl |
Total release size: 66.6 kB
Release files / penguin_email-0.1.0.tar.gz
| Download URL | penguin_email-0.1.0.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0cb63996f91b1d56b0a5d27c43c8c51087265ea9f494564ff084d45b8bc39c0
|
|
BLAKE2b-256 checksum How to use checksums |
ccafc49b3b6462b54271628f6e90051b70f73b988d1d7154999f573a36aa0fec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logRelease files / penguin_email-0.1.0-py3-none-any.whl
| Download URL | penguin_email-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f2743248d84bae39e745cbdea29c61282a654f870999ab2ae053cd22a9e2270
|
|
BLAKE2b-256 checksum How to use checksums |
db8991847f49f31ff04697f393b80c4584aff0e83e5a57992457c3697f77716d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logSecurity for penguin-email 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for penguin_email-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 21, 2026.
Transparency logA 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.