Skip to main content

django-sns-view2

A drop in configurable django view that is used to subscribe and process AWS SNS messages.

This repo is a fork of the (now unmaintained) django-sns-view package (see also deep-c/django-sns-view on GitHub).

Installation

pip install django-sns-view2

Default Django Settings

SNS_CERT_DOMAIN_REGEX = r"sns.[a-z0-9\-]+.amazonaws.com$" # Regex to match on cert domain
SNS_VERIFY_CERTIFICATE = True # Whether to verify signature against certificate

SNSEndpoint Attributes

message_type_header = 'HTTP_X_AMZ_SNS_MESSAGE_TYPE'
topic_type_header = 'HTTP_X_AMZ_SNS_TOPIC_ARN'
allowed_message_types = ['Notification', 'SubscriptionConfirmation', 'UnsubscribeConfirmation']
cert_domain_settings_key = 'SNS_CERT_DOMAIN_REGEX'
sns_verify_settings_key = 'SNS_VERIFY_CERTIFICATE'
topic_settings_key = '' # If you would like to subscribe this endpoint only certain topics, create a setting containing a list of topics that are allowed.

Usage

from django_sns_view.views import SNSEndpoint

class MySNSView(SNSEndpoint):
    # Can override SNSEndpoint attributes outlined above

    def handle_message(self, message, payload):
        # Process the message

Release files for django-sns-view2 0.3.2

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-sns-view2 0.3.2
File Size Uploaded
django_sns_view2-0.3.2.tar.gz 48.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sns-view2 0.3.2
File Interpreter ABI Platform
django_sns_view2-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 63.6 kB

Release files / django_sns_view2-0.3.2.tar.gz

Download URL django_sns_view2-0.3.2.tar.gz
Size 48.8 kB
Tags Source
SHA-256 checksum
How to use checksums
03f85dfd017e71f3c6070b96cfb1c408640fda47cbf58cb6128bc7092d859bbf
BLAKE2b-256 checksum
How to use checksums
689bacb35f1979a6202f6bf442eab31784b0296137e60543606de7fc3d1b42f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.3

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 GitLab CI/CD, verified by PyPI on Sep 3, 2025.

Transparency log

Release files / django_sns_view2-0.3.2-py3-none-any.whl

Download URL django_sns_view2-0.3.2-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2853a42ff63252fd7c32522b880f86d91fc58a565291dea132daa76b7ef2ce1c
BLAKE2b-256 checksum
How to use checksums
984d9706efac68e06b74aa9119a0573836cdcecc43d3d0c5f08c21e8c00fc460
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.3

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 GitLab CI/CD, verified by PyPI on Sep 3, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

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