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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_sns_view2-0.3.2.tar.gz | 48.8 kB | With provenance | Details for django_sns_view2-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_sns_view2-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for django_sns_view2-0.3.2-py3-none-any.whl |
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 logRelease 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 logSecurity for django-sns-view2 0.3.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for django_sns_view2-0.3.2.tar.gz
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 logA 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.