email-sender
A lightweight internal Python library that provides reusable email-sending utilities for the Fabric Notebook team.
This package is designed to be published as a wheel (.whl) and consumed across internal services.
Features
- Send emails via a simple POST API
- Supports multiple recipients
- Handles 200, 201, 202 as successful response codes
- Minimal dependencies (only
requests) - Easy to integrate in notebooks, scripts, or internal pipelines
Installation
Install the wheel file:
pip install email_sender-0.1.0-py3-none-any.whl
# Creating the wheel file
pip install build # Install the build tool
python -m build # Build the .whl file
"""
Usage:
from email_sender import send_email_no_attachment
status, response = send_email_no_attachment(
{
"to": ["user1@domain.com", "user2@domain.com"],
"subject": "Team Update",
"body": "Hello team!"
},
endpoint_url="https://your-mail-endpoint",
access_token="YOUR_ACCESS_TOKEN"
)
print(status, response)
"""
Release files for email-function-whl 1.0.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 | |
|---|---|---|---|
| email_function_whl-1.0.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| email_function_whl-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / email_function_whl-1.0.0.tar.gz
| Download URL | email_function_whl-1.0.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d4ccabe5e05148d6934219b2fd706814dde9b49c675c0e4d7f9184a221f3753
|
|
BLAKE2b-256 checksum How to use checksums |
bd2060ab2eefc96a90041dcbb98cf3aeddf704985f18e3aaaceff8c259d75c03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / email_function_whl-1.0.0-py3-none-any.whl
| Download URL | email_function_whl-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72e68d6cf47b8e34f045ce662125a3e2415b2b6b4b39b02efb103ef60f1878dc
|
|
BLAKE2b-256 checksum How to use checksums |
68853e3b5fd55f01c80433ef0d278fc34590c343bfb0eb587ce0ba8d052fdafc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|