Sends Messages with different services such as email
Project description
Message Sender
Sends messages with different services such as email and Google Chat.
Installation
pip install message-sender
Usage
Google Chat
Send messages to Google Chat via webhooks. To set this up, create a "space" in Google Chat, then go to Apps & integrations and create a new webhook.
Sync Client
from message_sender.google_chat import GoogleChatClient
with GoogleChatClient("https://your-webhook-url.com") as client:
client.send_message("Some test message")
Async Client
from message_sender.google_chat import AsyncGoogleChatClient
async with AsyncGoogleChatClient("https://your-webhook-url.com") as client:
await client.send_message("Some test message")
Proton Email
Send emails through Proton Mail's SMTP service. For setup instructions see https://proton.me/support/smtp-submission
Sync Client
from message_sender.email.proton import ProtonEmailClient
client = ProtonEmailClient(
email_address="smtp_setup_email@proton.me", smtp_token="your-token"
)
client.send_email(
message="Your message body",
email_to="someone@email.com",
subject="Example",
html_content="<p>Your HTML message body</p>", # optional
)
Async Client
from message_sender.email.proton import AsyncProtonEmailClient
client = AsyncProtonEmailClient(
email_address="smtp_setup_email@proton.me", smtp_token="your-token"
)
await client.send_email(
message="Your message body",
email_to="someone@email.com",
subject="Example",
html_content="<p>Your HTML message body</p>", # optional
)
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 message_sender-0.1.0.tar.gz.
File metadata
- Download URL: message_sender-0.1.0.tar.gz
- Upload date:
- Size: 47.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2f62160b9454903e2f4a2662f778e61ba20aceb4d48d2f9187315d7f205db2
|
|
| MD5 |
6014b20b28beb3c8455b7699ea35fcd3
|
|
| BLAKE2b-256 |
50b06c9e4e2876ef3a9424143d4d9a67762377191f95099a6efefa068641c9ee
|
File details
Details for the file message_sender-0.1.0-py3-none-any.whl.
File metadata
- Download URL: message_sender-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc977fc6240dfd4af2699b80c3d4ab71b0eebe5964410e01718e4d7349b58684
|
|
| MD5 |
b94460ceff87cae3403c7b65eb373a1d
|
|
| BLAKE2b-256 |
82fa6eb83294457546bf5bc3578a648dbed86e2619b37e1a9bed8d05417b79fe
|