django-sitemessage
https://github.com/idlesign/django-sitemessage
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.
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()
)
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)
...
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
Metadata
Release files for django-sitemessage 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-sitemessage-1.4.0.tar.gz | 53.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_sitemessage-1.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 106.5 kB
Release files / django-sitemessage-1.4.0.tar.gz
| Download URL | django-sitemessage-1.4.0.tar.gz |
|---|---|
| Size | 53.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb8717e1c36d29cd6d82295190f2b35d06bc513f6ae67e29c376a26a8d4ca212
|
|
BLAKE2b-256 checksum How to use checksums |
2584a2efefdd1a25ccec8bcb89b21c37e06a4d190b9efa2e26b521f0024f1ac9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
|
Release files / django_sitemessage-1.4.0-py3-none-any.whl
| Download URL | django_sitemessage-1.4.0-py3-none-any.whl |
|---|---|
| Size | 52.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aab4bf92daad6324261f868af5c65414e669319e7c3f6dacb7653ac8fff63ddd
|
|
BLAKE2b-256 checksum How to use checksums |
4a146e0ebebadc53bd0017d648e20873aebd1145268ac83785dea25c3103e39f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
|
Security for django-sitemessage 1.4.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.
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.