Skip to main content

pymissive

Lightweight, framework-agnostic Python library for multi-channel message sending: email, SMS, WhatsApp, registered electronic mail (registered letter) and team messaging.

Overview

pymissive exposes one provider interface per channel, so the calling code stays the same whichever service actually delivers the message. It is the base of django-pymissive and can be used on its own in any Python project.

The PyPI name is pymissive; the directory holding it in this monorepo is python-pymissive/.

Main features

  • 🔌 8 providers, all sharing the same service names
  • 📧 Email: Brevo, Scaleway
  • 📱 SMS: Brevo, SMSPartner
  • 💬 WhatsApp: Brevo
  • 📮 Postal letters: Maileva (simple letter and electronic registered letter)
  • 👥 Team messaging: Slack, Microsoft Teams, Discord
  • ✋ Hand delivery: tracks an in-person hand-over, no external API
  • 🏗️ Modular architecture based on ProviderKit
  • ✅ Framework-agnostic: usable with or without a framework
  • 🎯 Type hints throughout

Installation

pip install pymissive

requests is a base dependency, so Maileva and SMSPartner work as installed. Providers needing another SDK have their own extra. Those imports are lazy, so a missing extra only disables that one provider:

pip install pymissive[brevo]     # brevo-python
pip install pymissive[scaleway]  # boto3
pip install pymissive[discord]   # discord.py

Quick usage

from pymissive.providers.slack import SlackProvider

provider = SlackProvider(config={
    "SLACK_BOT_TOKEN": "xoxb-your-token",
    "SLACK_CHANNEL_ID": "C0123456789",
})

result = provider.send_branded(
    subject="Deployment finished",
    body_text="Version 1.3.15 is live.",
)

Each key in config_keys is read from config first, then from the environment, so exporting SLACK_BOT_TOKEN instead works the same way.

Available providers

Services are named <verb>_<missive_type> — send_email, retrieve_registered_letter, handle_webhook_sms, and so on. branded is the missive type used by the team messaging platforms, where the sender identity is the bot rather than an address.

Provider Class Missive types Extra
Brevo BrevoAPIProvider email, sms, branded (including WhatsApp) [brevo]
Scaleway ScalewayProvider email, branded [scaleway]
Maileva MailevaProvider letter, registered_letter, branded —
SMSPartner PartnerProvider sms, branded —
Slack SlackProvider branded —
Microsoft Teams TeamsProvider branded —
Discord DiscordProvider branded [discord]
Hand delivery HandDeliveryProvider hand_delivery, branded —

Planned providers

The following providers are roadmap items only. They are not shipped as Python modules and cannot be imported:

  • Email: Django email backend, SMTP, SendGrid, Mailgun, Amazon SES
  • SMS: Twilio, Vonage
  • Instant messaging: Telegram, Signal, Messenger
  • Postal and registered delivery: La Poste, AR24, Certeurope
  • Push notifications: Firebase Cloud Messaging (FCM), Apple Push Notification service (APNs), in-app notifications

Architecture

Providers are plain classes discovered by ProviderKit:

from pathlib import Path

import pymissive.providers as providers_package
from providerkit import autodiscover_providers

classes = autodiscover_providers(
    Path(list(providers_package.__path__)[0]),
    base_module="pymissive.providers",
    exclude_files=["base"],
)
# {'brevo': BrevoAPIProvider, 'maileva': MailevaProvider, ...}

Beware of ProviderBase.services: it lists the whole catalogue of service names, not the subset a given provider implements. To know whether a provider really supports something, look for the method itself:

provider = classes["brevo"]()
can_send_sms = hasattr(provider, "send_sms")

Documentation

For more details, see the documentation in the docs/ folder:

  • docs/purpose.md - Project goals and architecture
  • docs/structure.md - Module structure and organization
  • docs/development.md - Development guidelines
  • docs/AI.md - Contract for AI assistants

Development

pip install -e ".[test]"

# Tests and lint
python -m pytest
ruff check src

The core package has its own provider, CLI, webhook and packaging tests under tests/. Django integration tests live separately in django-pymissive/tests/.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Metadata

Release files for pymissive 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymissive 1.5.0
File Size Uploaded Provenance Actions
pymissive-1.5.0.tar.gz 94.1 kB With provenance Details for pymissive-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymissive 1.5.0
File Interpreter ABI Platform Actions
pymissive-1.5.0-py3-none-any.whl Python 3 none any Details for pymissive-1.5.0-py3-none-any.whl

Total release size: 178.8 kB

Release files / pymissive-1.5.0.tar.gz

Download URL pymissive-1.5.0.tar.gz
Size 94.1 kB
Tags Source
SHA-256 checksum
How to use checksums
29a1ae583c601a49e8906dcb24a986a0332c07639238252ecb840dbfaa03a3de
BLAKE2b-256 checksum
How to use checksums
a158b30771ed44c5df6e09e2cf40b1b72b32fe7c7ca6a6c13f077482e89c6ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Release files / pymissive-1.5.0-py3-none-any.whl

Download URL pymissive-1.5.0-py3-none-any.whl
Size 84.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
299c16655228322cdf1a88667a218046e760bcf06db5d6869eba5a6f26fa25d4
BLAKE2b-256 checksum
How to use checksums
e3b2cd65bb52dac2546ab581b801f3b657fbe1c12a34f450675c166615d08ad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 27, 2026.

Transparency log

Security for pymissive 1.5.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.

Select from 2 files

Attestation for pymissive-1.5.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 Oct 27, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page