Skip to main content

Framework-agnostic messaging library for multi-channel communication.

Project description

python-missive

Lightweight, framework-agnostic Python library for multi-channel message sending (email, SMS, push notifications, postal mail, etc.).

Overview

python-missive is a framework-agnostic Python library that provides unified providers for multi-channel message sending. It serves as the base for django-missive and can be used independently in any Python project.

Main features

  • 🔌 15+ integrated providers for different communication channels
  • 📧 Email: SendGrid, Mailgun, SES, Brevo, SMTP, Django Email
  • 📱 SMS & Voice: Twilio, Vonage, SMSPartner
  • 💬 Messaging: Telegram, Signal, Messenger, Slack, Teams
  • 📮 Postal & LRE: La Poste, Maileva, AR24, Certeurope
  • 🔔 Push notifications: FCM (Firebase), APN (Apple), In-App
  • 🏗️ Modular architecture based on ProviderKit
  • Framework-agnostic: usable with or without a framework
  • 🎯 Complete type hints and documentation

Installation

# Basic installation
pip install python-missive

# With dependencies for specific providers
pip install python-missive[email]      # Email providers
pip install python-missive[sms]        # SMS and voice
pip install python-missive[messaging]  # Telegram, Signal, etc.
pip install python-missive[push]       # FCM, APN
pip install python-missive[postal]     # Postal mail
pip install python-missive[all]        # All providers

Quick usage

from pymissive.providers.sendgrid import SendGridProvider

# Configure the provider
provider = SendGridProvider(config={
    'SENDGRID_API_KEY': 'your-api-key'
})

# Send an email
result = provider.send_email(
    from_email='sender@example.com',
    to_email='recipient@example.com',
    subject='Hello',
    body='<p>Message content</p>'
)

Available providers

Email

  • DjangoEmailProvider - Uses Django email backend
  • SMTPProvider - Generic SMTP
  • SendGridProvider - SendGrid API
  • MailgunProvider - Mailgun API
  • SESProvider - Amazon SES
  • BrevoProvider - Brevo (ex-Sendinblue)
  • ScalewayProvider - Scaleway Transactional Email

SMS & Voice

  • TwilioProvider - Twilio SMS and voice calls
  • VonageProvider - Vonage (ex-Nexmo)
  • SMSPartnerProvider - SMSPartner

Messaging

  • TelegramProvider - Telegram Bot API
  • SignalProvider - Signal Messenger
  • MessengerProvider - Facebook Messenger
  • SlackProvider - Slack
  • TeamsProvider - Microsoft Teams

Postal mail & LRE

  • LaPosteProvider - La Poste (physical mail)
  • MailevaProvider - Maileva
  • AR24Provider - AR24 (LRE)
  • CerteuropeProvider - Certeurope

Push notifications

  • FCMProvider - Firebase Cloud Messaging
  • APNProvider - Apple Push Notification
  • InAppNotificationProvider - In-app notifications

Architecture

The library uses ProviderKit for provider management:

from pymissive.providers import get_missive_providers

# Discover all available providers
providers = get_missive_providers()

# Filter by service type
email_providers = [p for p in providers if 'email' in p.services]

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

# Create virtual environment
python service.py dev venv

# Install in development mode
python service.py dev install-dev

# Run tests
python service.py dev test

# Format code
python service.py dev format

# Run all quality checks
python service.py quality check

License

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

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

pymissive-1.0.5.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

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

pymissive-1.0.5-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

Details for the file pymissive-1.0.5.tar.gz.

File metadata

  • Download URL: pymissive-1.0.5.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pymissive-1.0.5.tar.gz
Algorithm Hash digest
SHA256 8e1b9ef9781e08d1ed7e148edb60723299752114b498bc84dd6c48223d64daf6
MD5 4911e70067395e115b7e0e8b78bca45e
BLAKE2b-256 4e07d3a82b5afa2818e1f2aaeab79f2e81bcbe7ba263e0676c53b6de6f4e732b

See more details on using hashes here.

File details

Details for the file pymissive-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: pymissive-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 48.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pymissive-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 946a9e2f645f2612ed248111fd0461fff9b5a5384c66e1c95c005c57604e7464
MD5 acf527fc09f31c0a773c93ce77710ecb
BLAKE2b-256 1764d763803e5c9cb6834c6a3ccc3b5f6d69ab7fa6d230a157f16449fd4e4e2a

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