Skip to main content

django-sitemessage

https://github.com/idlesign/django-sitemessage

release lic coverage

Description

Reusable application for Django introducing a message delivery framework.

Features:

  • Message Types — message classes exposing message composition logic (plain text, html, etc.).
  • Messengers — clients for various protocols (smtp, jabber, twitter, telegram, facebook, vkontakte, etc.);
  • Support for user defined message types.
  • Support for user defined messenger types.
  • Message prioritization.
  • Message subscription/unsubscription system.
  • Message grouping to prevent flooding.
  • Message 'read' indication.
  • Means for background message delivery and cleanup.
  • Means to debug integration: test requisites, delivery log.
  • Django Admin integration.
  1. Configure messengers for your project (create sitemessages.py in one of your apps):
from sitemessage.toolbox import register_messenger_objects, register_message_types
from sitemessage.messengers.smtp import SMTPMessenger

register_messenger_objects(
    # Here we register one messenger to deliver emails.
    # By default it uses mailing related settings from Django settings file.
    SMTPMessenger()
)
  1. Schedule messages for delivery when and where needed (e.g. in a view):
from sitemessage.shortcuts import schedule_email

def send_mail_view(request):
    ...

    # Suppose `user_model` is a recipient Django User model instance.
    user1_model = ...

    # We pass `request.user` into `sender` to keep track of senders.
    schedule_email('Message from sitemessage.', [user1_model, 'user2@host.com'], sender=request.user)

    ...
  1. Periodically run Django management command from wherever you like (cli, cron, Celery, uWSGI, etc.):

    ./manage.py sitemessage_send_scheduled

And that's only the tip of sitemessage iceberg, read the docs %)

Documentation

https://django-sitemessage.readthedocs.io/

Metadata

Release files for django-sitemessage 1.4.1

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

Source distribution (sdist)

Source distribution for django-sitemessage 1.4.1
File Size Uploaded Provenance Actions
django_sitemessage-1.4.1.tar.gz 33.4 kB Without provenance Details for django_sitemessage-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sitemessage 1.4.1
File Interpreter ABI Platform Actions
django_sitemessage-1.4.1-py3-none-any.whl Python 3 none any Details for django_sitemessage-1.4.1-py3-none-any.whl

Total release size: 85.6 kB

Release files / django_sitemessage-1.4.1.tar.gz

Download URL django_sitemessage-1.4.1.tar.gz
Size 33.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1d4a10dcd40f8b7b8efb49a4adfca9d66fdf80ea12ad87b8f7f3569a457ce2b9
BLAKE2b-256 checksum
How to use checksums
545a9b4341ac599cb02e6278db7c1273fed59ad3f244cb88c3fccf60ff0f9afb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_sitemessage-1.4.1-py3-none-any.whl

Download URL django_sitemessage-1.4.1-py3-none-any.whl
Size 52.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac08f90a144ccec532d63240104590ed91673f6599e93310e0b72631d5e1229a
BLAKE2b-256 checksum
How to use checksums
01446daf417cfa1423aa79ef74c66fcf77ea4cfe541d849c8d99a503dacfefeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for django-sitemessage 1.4.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.4.1 This release

2 release files No 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