Platzky plugin for sending emails with optional file attachments
Project description
platzky-sendmail
Platzky plugin for sending emails with optional file attachments.
Installation
pip install platzky-sendmail
Activation
Add the plugin to the plugins list in your Platzky database configuration.
The name must match the entry-point key declared in pyproject.toml:
{
"plugins": [
{
"name": "sendmail",
"config": {
"sender_email": "sender@example.com",
"password": "MY-SECRET-PASSWORD",
"smtp_server": "smtp.example.com",
"port": 465,
"receiver_email": "receiver@example.com",
"subject": "Default email subject"
}
}
]
}
Port 465 uses implicit SSL (SMTP_SSL); any other port uses explicit TLS via
STARTTLS.
Development
This plugin extends NotifierPluginBase.
It declares the notification topics it accepts via accepted_topics and
implements notify(self, notification) to deliver the message — and any
attachments — over SMTP. Total attachment size is capped at 25 MB
(DEFAULT_MAX_TOTAL_ATTACHMENT_SIZE), raising AttachmentSizeError if exceeded.
poetry install # Install dependencies
make lint # Auto-format and fix (black + ruff --fix)
make lint-check # Check formatting/linting + types + docstrings (CI)
make dev # Lint + type check (pyright)
make unit-tests # Run all tests
make coverage # Tests with coverage
make build # Build wheel/sdist
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file platzky_sendmail-0.3.0.tar.gz.
File metadata
- Download URL: platzky_sendmail-0.3.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a96bb35e3e22772353aa7bf85e7bb9ba237876f9cc1fcec30e2beb02ffa195c5
|
|
| MD5 |
62039bebe03d181379a5adab55ee9fe8
|
|
| BLAKE2b-256 |
3f966b99dc23cd0dbdd9f7019afc39d01a95660071bb252ef9248f5ba593c964
|
Provenance
The following attestation bundles were made for platzky_sendmail-0.3.0.tar.gz:
Publisher:
release.yml on platzky/platzky-sendmail
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
platzky_sendmail-0.3.0.tar.gz -
Subject digest:
a96bb35e3e22772353aa7bf85e7bb9ba237876f9cc1fcec30e2beb02ffa195c5 - Sigstore transparency entry: 1937399376
- Sigstore integration time:
-
Permalink:
platzky/platzky-sendmail@2ff3d54cbfe0db2ac99d63448c97e34dfa5b0776 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/platzky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2ff3d54cbfe0db2ac99d63448c97e34dfa5b0776 -
Trigger Event:
push
-
Statement type:
File details
Details for the file platzky_sendmail-0.3.0-py3-none-any.whl.
File metadata
- Download URL: platzky_sendmail-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f38345cdc9a3949b0c34de00845a1099152e1b9e3a69f19a8427000b52713859
|
|
| MD5 |
b59b6ddd2a976336ec6f9b9a462b8908
|
|
| BLAKE2b-256 |
3dd57706324c6b781bbfbc4d8989afda112edaba0166216ddf8f24bcc6cc5c78
|
Provenance
The following attestation bundles were made for platzky_sendmail-0.3.0-py3-none-any.whl:
Publisher:
release.yml on platzky/platzky-sendmail
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
platzky_sendmail-0.3.0-py3-none-any.whl -
Subject digest:
f38345cdc9a3949b0c34de00845a1099152e1b9e3a69f19a8427000b52713859 - Sigstore transparency entry: 1937399568
- Sigstore integration time:
-
Permalink:
platzky/platzky-sendmail@2ff3d54cbfe0db2ac99d63448c97e34dfa5b0776 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/platzky
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2ff3d54cbfe0db2ac99d63448c97e34dfa5b0776 -
Trigger Event:
push
-
Statement type: