Skip to main content

Simple email API client and utility functions for Fabric Notebook team

Project description

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)
"""

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

email_function_whl-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

email_function_whl-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file email_function_whl-1.0.0.tar.gz.

File metadata

  • Download URL: email_function_whl-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for email_function_whl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0d4ccabe5e05148d6934219b2fd706814dde9b49c675c0e4d7f9184a221f3753
MD5 175d131b45641a08033b6ad309610813
BLAKE2b-256 bd2060ab2eefc96a90041dcbb98cf3aeddf704985f18e3aaaceff8c259d75c03

See more details on using hashes here.

File details

Details for the file email_function_whl-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for email_function_whl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72e68d6cf47b8e34f045ce662125a3e2415b2b6b4b39b02efb103ef60f1878dc
MD5 6eefb84e2e46d6711ecab279c1880df0
BLAKE2b-256 68853e3b5fd55f01c80433ef0d278fc34590c343bfb0eb587ce0ba8d052fdafc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page