Skip to main content

Django Dans Notifications

By: Daniel Nazarian 🐧👹

Lint Test Types codecov

Python Versions Django Versions PyPI Version Downloads License Codacy grade Code style

Description

A Django app to handle notifications.

Support for basic notifications, push notifications, and email notifications.

Available on PyPi

Quick Start

pip install django-dans-notifications

See the Getting Started Guide for detailed installation and configuration instructions.

Requirements

  • Python 3.8 or higher
  • Django 3.1 or higher
  • Django Rest Framework (with authentication configured)

Basic Usage

from django_dans_notifications.models.notifications import NotificationEmail

# Send an email notification
notification = NotificationEmail.objects.send_email(
    subject="Welcome",
    template="django-dans-emails/default.html",
    sender="noreply@example.com",
    recipients=["user@example.com"],
    context={"team_name": "My Team"}
)

See the Usage Guide for more examples and advanced usage.

Features

Models

  • NotificationEmail: Handles email notifications.
  • NotificationBasic: Handles basic notifications.
  • NotificationPush: Handles push notifications.

Managers

  • NotificationEmailManager: Handles sending and managing email notifications.
  • NotificationBasicManager: Handles basic notifications.
  • NotificationPushManager: Handles push notifications.

API ViewSets

  • NotificationEmailViewSet: API endpoints for email notifications.
  • NotificationBasicViewSet: API endpoints for basic notifications.
  • NotificationPushViewSet: API endpoints for push notifications.

Utility Classes

  • NotificationManager: Exposes common functionality and maintains object permissions.
    • Methods: get_notifications_push/email/basic/all, mark_notification_basic_read.

Documentation

Support

For issues, questions, or contributions, please visit the GitHub repository.


https://danielnazarian.com

Metadata

Release files for django-dans-notifications 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 django-dans-notifications 1.5.0
File Size Uploaded Provenance Actions
django_dans_notifications-1.5.0.tar.gz 40.6 kB Without provenance Details for django_dans_notifications-1.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 92.0 kB

Release files / django_dans_notifications-1.5.0.tar.gz

Download URL django_dans_notifications-1.5.0.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d20c4c5df619ef36f7f229402b5b219908f603076d3960a667422c8bdf34264f
BLAKE2b-256 checksum
How to use checksums
22ce3c2bd89d7498c769281baa92100ff5d2d26189e0e16d8bb46e298cd49ffa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

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

Download URL django_dans_notifications-1.5.0-py3-none-any.whl
Size 51.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8bf37ee6d8b288ef03aff4b598a02c4302f981666e6c0532377af47893b731
BLAKE2b-256 checksum
How to use checksums
d137590947e4369e5e4bcdcec4ccaa175dba15f2f7e276c1206d2d29e38ebafd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for django-dans-notifications 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.

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