Saravanan666/pypi-org huggingface dataset:
Package: django-sms-package
Django Sms is a Python package that simplifies the process of sending SMS messages using various SMS service providers.
It offers a modular and user-friendly API for sending messages and tracking statistics related to the messages sent.Quick startAdd “smsapp” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "smsapp",
]Include the apps URLconf in your project urls.py like this:path("smsadmin/", include("smsapp.urls")),Runpython manage.py migrateto create the polls models.Use the provided API to send SMS messages. The package abstracts away the complexities of interacting with different provider APIs:from .settings import AFRICAS_USERNAME, AFRICAS_API_KEY, SENDER_ID, KMI_ACCESS_KEY, KMI_SECRET_KEY, GEEZ_TOKEN, JAK_USERNAME, JAK_PASSWORD

from smsapp.providers.kmi_sms import KmiSms
from smsapp.providers.africastalking_sms import AfricasTalkingSms
from smsapp.providers.jak_sms import JakSms
from smsapp.providers.geez_sms import GeezSms

from smsapp.utils import send_and_save_sms

providers = [
    KmiSms(access_key=KMI_ACCESS_KEY, secret_key=KMI_SECRET_KEY, sender_id=SENDER_ID, callback_url="https://ad04-196-188-55-159.ngrok-free.app/sms_callback"),
    AfricasTalkingSms(username=AFRICAS_USERNAME, api_key=AFRICAS_API_KEY, sender_id=SENDER_ID),
    JakSms(username=JAK_USERNAME, password=JAK_PASSWORD),
    GeezSms(GEEZ_TOKEN),
]

def send_sms(phone, message):
    send_and_save_sms(phone, message, providers)
# Then you can use this api to send your sms messages
``Start the development server and visithttp://127.0.0.1:8000/smsadmin/to see an sms statistics dashboard.
Package: django-smsru
Django SMS.RUПриложение Django для быстрой интеграции API сервисаsms.ruБыстрый стартpip install django-smsruДобавьтеsmsruв INSTALLED_APPS:INSTALLED_APPS = [
     ...
     'smsru',
   ]В настройках так же следует добавить параметрSMS_RU:SMS_RU = {
    "API_ID": '<API KEY>', # если указан API ключ, логин и пароль пропускаем
    "LOGIN": '<login>', # если нет API, то авторизуемся чезер логин и пароль
    "PASSWORD": '<password>',
    "TEST": True, # отправка смс в тестовом режиме, по умолчанию False
    "SENDER": 'sms', # отправитель - необязательно поле
    "PARTNER_ID": 1111 # ID партнера - необязательно поле
}Обязательно должен быть указанAPI_IDили параLOGINиPASSWORD, остальные параметры по желанию.API_ID- API ключ, если он указан, авторизация осуществляется только через него, Логин и Пароль при этом
игнорируютсяLOGINиPASSWORD- Логин и Пароль для авторизации запросов, используются только в случае если не указанAPI_IDTEST- отправлять ли сообщения в тестовом режиме, по умолчанию отправляем в нормальном режимеSENDER- имя отправителяPARTNER_ID- ID партнераДобавьте в свойurls.pyимпорт URL (для работы callback, по желанию):path('smsru/', include('smsru.urls'))Запуститеpython manage.py migrateдля создания необходимых таблиц.В админ панели вы сможете увидеть лог сообщений и запросить статус любого из них.Так же добавилась консольная команда для отправки смсpython manage.py send-sms-ru --phone +79888888888 --msg ТестСигналыsmsru_call_back_sms(sender, instance, new_status)- при обработке callback запроса, после изменения статуса
сообщенияfromdjango.dispatchimportreceiverfromsmsru.signalsimportsmsru_call_back_sms@receiver(smsru_call_back_sms)defcall_back_sms(sender,instance,new_status,*args,**kwargs):instance.msg='signal'instance.save()Использование библиотеки в кодеОтправка на один номер одного смс:fromsmsru.serviceimportSmsRuApiapi=SmsRuApi()result=api.send_one_sms("+79888888888","Test")# телефон и сообщение# result: {#   '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'}# }Отправка на множество номеров, разных сообщений:fromsmsru.serviceimportSmsRuApiapi=SmsRuApi()result=api.send_multi_sms({'+79888888888':'test','+79888888889':'test 2',})# result: {#   '79888888888': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'},#   '79888888889': {'status': True, 'status_code': 100, 'sms_id': 0000-0000, 'status_text': 'Статус'}# }Получить баланс и лимиты:fromsmsru.serviceimportSmsRuApiapi=SmsRuApi()balance=api.get_balance()limits=api.get_limit()
Package: django-sms-support
Provides sms-support for data collection applications.Quick startAdd “sms-support” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'sms-support',
)Include the sms-support URLconf in your projects urls.py like this:# SMS support
url(r'^(?P<username>[^/]+)/', include('sms-support.urls'))
Package: django-sms-toolkit
Django SMS ToolkitDjango module to send and store SMS with Twilio.ReleasesTo release a new version via github.com, follow the steps in thislink.To release a new version via git commands, follow thisdocumentation.You can see the releaseshere.VersioningYou can referherefor semantics of versioning.Installationpip installdjango-sms-toolkit.Adddjango_sms_toolkitto theINSTALLED_APPSin the settings file.Configure settings.DJANGO_SMS_TOOLKIT_SETTINGS = {
    "SEND_SMS": True,  # True by default.
    "DEFAULT_FROM_NUMBER": "",
    "TWILIO": {
        "ACCOUNT_SID": "",
        "AUTH_TOKEN": "",
        "STATUS_CALLBACK_BASE_URL": "https://www.myapp.com",
        "TRIM_LONG_BODY": True,  # True by default. Makes sure character limit is not exceeded.
    }
}python manage.py migrateInclude urls to be able to receive message status callbacks from Twilio.urlpatterns = [
    ....,
    url(r'^', include('django_sms_toolkit.urls')),
](Optional) AddTwilioMessageMixinto your auth user model.from django_sms_toolkit.models import TwilioMessageMixin

class AuthUser(TwilioMessageMixin,...):
    ....
    
# Default from number provided in settings is used if from_number is not provided.
user.send_sms(body, from_number=None)
# OR
from django_sms_toolkit.tasks import send_sms
send_sms.delay(from_number, to_number, body, recipient_id=None)SupportPleaseopen an issuefor support.ContributingPlease contribute usingGithub Flow. Create a branch, add commits, andopen a pull request.
Package: django-sms-uz
Create a new projectpip install django-sms-uz==1.0.0, pip install djangorestframework and pip install requestsAdd the following to your settings.py file: INSTALLED_APPS = ( … ‘SMS’, … ) SMS_SETTINGS = {“SMS_URL”: “http://91.204.239.44/broker-api/send”,”SMS_LOGIN”: “LOGIN”,”SMS_PASSWORD”: “PASSWORD”} set in your settings.py fileAdd the following to your urls.py file:path(‘sms/’, include(‘SMS.urls’)),Runpython manage.py migrateto create the database tablesStart your Django development serverpython manage.py runserverand go tohttp://localhost:8000/sms/send_sms/Enter your phone number and message and click sendCheck your terminal for a response and Django admin will tell you if it was successful or notYou could use callfrom SMS.sms_utils import SMS_Senderto get the SMS class and send sms using by the waySMS_Sender(phone_number,message).SendSmsOneContact()it returns a responseDon’t forget to addSMSto your INSTALLED_APPS list and add SMS_SETTINGS = {“SMS_URL”: “http://91.204.239.44/broker-api/send”,”SMS_LOGIN”: “LOGIN”,”SMS_PASSWORD”: “PASSWORD”} set in your settings.py file
Package: django-smtp-alternative
Django email backend providing sending with alternative SMTP server if primary server failsInstallationpipinstalldjango-smtp-alternativeUsageEdit settings.pyEMAIL_BACKEND="django_smtp_alternative.EmailBackend"ALTERNATIVE_EMAIL_HOST='alternative.host'ALTERNATIVE_EMAIL_PORT='25'Following settings are not required, if some is not defined or set to None, is used default settings acording to primary SMTP configuration.ALTERNATIVE_EMAIL_HOST_USER='username'ALTERNATIVE_EMAIL_HOST_PASSWORD='password'ALTERNATIVE_EMAIL_USE_TLS=FalseLicenseLGPLv3
Package: django-smtp-ntlm-backend
# django-smtp-ntlm-backend
Django email backend supporting SMTP with NTLM authentication, e.g. for MS Outlook Exchange over SMTPMostly copied from
-https://www.pythondiary.com/tutorials/django-ntlm-smtp-auth.html- [piotrbulinski/django-ses-backend](https://github.com/piotrbulinski/django-ses-backend)
- [django-ses](https://github.com/django-ses/django-ses)License same as [python-ntlm3](https://github.com/trustrachel/python-ntlm3/blob/master/LICENSE.md)# Installingpip install django-smtp-ntlm-backendand untilhttps://github.com/trustrachel/python-ntlm3/pull/24is closedpip install git+https://github.com/shadiakiki1986/python-ntlm3.git@feature_smtpand add the settings variables for SMTP as usual, with the username beingdomain\user# Testing`bash pew new DJANGO_SMTP_NTLM pip3 install-qDjango==1.11pip3 install-rrequirements.txt python3 runtests.py `# UsageIn thesettings.py, useEMAIL_BACKEND = ‘django_smtp_ntlm_backend.NTLMEmail’
EMAIL_HOST = “mail.server.com”
EMAIL_PORT = port # e.g. 587
EMAIL_HOST_USER = “domain\username”
EMAIL_HOST_PASSWORD = “password”
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
DEFAULT_FROM_EMAIL=”Someone <from@email.com>”# Publishing to pypi
Run`bash pew in DJANGO_SMTP_NTLM make release `If your username/password for pypi are not in a.pypircfile ([ref](http://peterdowns.com/posts/first-time-with-pypi.html)),
you will be prompted to type in your credentials.
Package: django-snakeviz-profiling
Django Snakeviz ProfilingDjango Snakeviz Profiling integratessnakevizalong with a db query display into a django middleware that can show results inline in your application.No migrations are required nor do any extra url routes need to be added to your application,
only requiring to install one piece of middleware.Table of ContentsInstallationUsageLicenseInstallationpip install django-snakeviz-profilingIn your settings file, add the following middleware as close to the top as
possible to cover as much code as possible:MIDDLEWARE = [
    "django_snakeviz_profiling.SnakevizProfilingMiddleware",
    ...
]Adddjango_snakeviz_profilingto your installed apps:INSTALLED_APPS = [
    ...
    "django_snakeviz_profiling",
]Finally, add the following config setting:SNAKEVIZ_PROFILING = "PLEASE_PROFILE_REQUESTS"UsageOn any request, add the following GET parameter to your url:SNAKEVIZ_PROFILING=PLEASE_PROFILE_REQUESTS, and instead of the regular page, you will be presented with a profile output from the request.Note that ifdjango_snakeviz_profilingis used, individual requests will be dramatically slower,
so be careful using this in prod!Licensedjango-snakeviz-profilingis distributed under the terms of theMITlicense.
Parts of the code comes from theSnakeviz Projectunder
the BSD 3-Clause license, and is specifically identified as such.
Package: django-snappy-vumi-bouncer
A Django app that bounces messages from Vumi to Snappy and backOverview+-------------------------------+        +----------------+         +------------------+
|            Vumi Go            |        |  Django Proj   |         |    Snappy        |
|                               |        |                |         |                  |
| +------------+    +---------+ |        | +------------+ |         |                  |
| | Vumi       |    | Vumi    | | HTTP   | |            | | HTTP    |                  |
| | Transport  +--> | Sandbox | +------> | | Snappy     | +-------> | 1. Create ticket |
| | (e.g. SMS) |    | App     | | POST   | | Bouncer    | | POST    |                  |
| |            |    |         | |        | |            | |         |                  |
| |            |    +---------+ |        | | 1. Store   | |         | 2. Ticket        |
| |            |                |        | | 2. Forward | |         |    response      |
| |            |    +---------+ |        | | 3. Listen  | |         |                  |
| |            |    | Vumi    | |   HTTP | | 4. Respond | |         |                  |
| |            | <--+ HTTP    | | <------+ |            | | <-------+ 3. Hook fires    |
| |            |    | API     | |   POST | +------------+ | Webhook |                  |
| |            |    |         | |        |                |         |                  |
| +------------+    +---------+ |        |                |         |                  |
|                               |        |                |         |                  |
+-------------------------------+        +----------------+         +------------------+ConfigurationThe following configuration (with dummy values replaced by real ones) needs to
be added tosettings.pyto configure this app:SNAPPY_API_KEY = 'keyfromsettings'
SNAPPY_BASE_URL = 'https://app.besnappy.com/api/v1'
SNAPPY_EMAIL = 'sharedmailbox@example.com'
SNAPPY_EXTRAS = ["extra1", "extra2"]
SNAPPY_MAILBOX_ID = 0
SNAPPY_STAFF_ID = 0
VUMI_GO_ACCOUNT_KEY = "key"
VUMI_GO_CONVERSATION_TOKEN = "token"
VUMI_GO_API_TOKEN = "token"
VUMI_GO_API_URL = "http://go.vumi.org/api/v1/go"
VUMI_GO_BASE_URL = VUMI_GO_API_URL + "/http_api_nostream"
VUMI_GO_CONVERSATION_KEY = "convokey"
Package: django-snapshot
Installation:AddsnapshottoINSTALLED_APPSin yoursettings.pywithin your django project.UsageUse management commandsnap./manage.py snaphelp:snap save         - take a snapshot at current timesnap restore [i]  - restore from [i] snapshot (0 by default)snap list         - list all available snapshotsHow it works:Program create *.tar.gz archive with files:info.json- JSON description of archive’s contents forrestorecommanddirectory_backup.2011-01-01.tar- backup of upload directorydatabase_postgres_backup.2011-01-01.sql- SQL database dumpAll files created and restored automatically, you do not need to bother of
their structure.Restrictions:Django-snapshot works now only with PostgreSQL database. Nor sqlite or MySQL are not supported.
If you have any suggestions, email developers. Any feedback is welcome.
Package: django-snapshot-field
Project for merging different file types, as example easy thumbnail image and unpacking archive in one fieldInstallationpipinstalldjango-snapshot-fieldor from gitpipinstall-egit+https://githib.com/Apkawa/django-snapshot-field.git#egg=django-snapshot-fieldDjango and python version compatiblesPythonDjango3.73.83.93.102.2:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:3.2:heavy_check_mark::heavy_check_mark::heavy_check_mark::heavy_check_mark:4.0:x::heavy_check_mark::heavy_check_mark::heavy_check_mark:Usagefromdjango.dbimportmodelsfromsnapshot_field.fieldsimportSnapshotModelFieldclassExample(models.Model):name=models.CharField(max_length=20)classExampleReference(models.Model):name=models.CharField(max_length=20)ref=models.ForeignKey(Example)classExampleSnapshotModel(models.Model):snapshot=SnapshotModelField(null=True)snapshot_refs=SnapshotModelField(['tests.Example',['ExampleReference',{'fields':['name','ref'],'refs':['ref']}]])obj=Example.objects.create(name='test_name')obj_ref=ExampleReference.objects.create(name='refname',ref=obj)snap=ExampleSnapshotModel.objects.create(snapshot=obj,snapshot_refs=obj_ref)assertsnap.snapshot.name==obj.nameassertsnap.snapshot_refs.name==obj_ref.nameassertsnap.snapshot_refs.ref.name==obj.nameobj.delete()obj_ref.delete()snap.refresh_from_db()assertsnap.snapshot.name==obj.nameassertsnap.snapshot_refs.name==obj_ref.nameassertsnap.snapshot_refs.ref.name==obj.name
Package: django-snikt
==========Snikt=====Snikt is a web application front end for provisioning new hardware.`pip install django-snikt` is the preferred way to install this application.Quick start (with Django Project already set up and Snikt installed)-----------1. Add "mac_info" to your INSTALLED_APPS in the settings.py file like this::INSTALLED_APPS = (...'mach_info',)2. Include the polls URLconf in your project urls.py like this::url(r'^home/', include('mach_info.urls',namespace="mach_info")),3. Run `python manage.py syncdb` to create the mach_info models.4. Start the development server with `python manage.py runserver`  and visit http://127.0.0.1:8000/admin/to monitor the database and possibly make changes.5. Visit http://127.0.0.1:8000/home/ to use the application.
Package: django-snippet-image
The python package provides a django field for automatic
generation of images for sharing in social networks.django-snippet-image based onsnippet-imagepackage.Installation`
pip3 install django-snippet-image
`ExampleUse SnippetImageField:fromdjango.db.modelsimport(Model,CharField,ImageField,)fromdjango_snippet_imageimportSnippetImageFieldclassStatuses:DRAFT='draft'PUBLISH='publish'CHOICES=((DRAFT,'Draft'),(PUBLISH,'Publish'),)classExampleModel(Model):text=CharField(max_length=200,verbose_name='Text for snippet image',)background=ImageField(verbose_name='Background for snippet image',blank=True,null=True,)snippet_image_field=SnippetImageField(verbose_name='Example snippet image field',null=True,)status=CharField(max_length=20,choices=Statuses.CHOICES,)# Methods for collect data for snippet image.defget_snippet_image_text(self,snippet_type):returnself.textifsnippet_type=='default'andself.textelse''defget_snippet_image_background(self,snippet_type):ifsnippet_type=='default'andself.background:returnself.background.pathdefsnippet_image_should_be_created(self):returnself.status==Statuses.PUBLISHclassMeta:verbose_name='example object'verbose_name_plural='example objects'And use in template:<metaproperty="og:image"content="{{ instance.snippet_image_field.url }}"/>Read more on homepage.
Package: django-snitch
Django app made to integrate generic events that create notifications that
can be sent to users using several backends.By default, it integratespush notificationsandemailto send the
notifications.Made with Python 3 and Django with :heart:.Quick start1Install using pip:pipinstalldjango-snitch2Add “snitch” to your INSTALLED_APPS settings like this:INSTALLED_APPS+=('snitch',)3Create anevents.pyfile in your app to register the events:importsnitchfromsnitch.backendsimportPushNotificationBackend,EmailNotificationBackendACTIVATED_EVENT="activated"CONFIRMED_EVENT="confirmed"@snitch.register(ACTIVATED_EVENT)classActivatedHandler(snitch.EventHandler):title="Activated!"@snitch.register(CONFIRMED_EVENT)classConfirmedHandler(snitch.EventHandler):title="Confirmed!"notification_backends=[PushNotificationBackend,EmailNotificationBackend]# Custom configuration for email backendtemplate_email_kwargs={"template_name":"email.html"}template_email_async=Falsedefaudience(self):returnget_user_model().objects.all()4Usedispatchdecorator to dispatch the event when a function is called:fromdjango.dbimportmodelsfromdjango.utilsimporttimezoneimportsnitchfromsnitch.modelsimportAbstractNotificationfromtests.app.eventsimportACTIVATED_EVENT,CONFIRMED_EVENTclassStuff(models.Model):"""Simple stuff model with status."""IDLE,ACTIVE,CONFIRMED=0,1,2status=models.PositiveIntegerField(default=IDLE)activated_at=models.DateTimeField(null=True,blank=True)confirmed_at=models.DateTimeField(null=True,blank=True)@snitch.dispatch(ACTIVATED_EVENT)defactivate(self):self.activated_at=timezone.now()@snitch.dispatch(CONFIRMED_EVENT)defconfirm(self):self.confirmed_at=timezone.now()Custom Notification modelYou can, in the same way thatdjango.contrib.auth.model.Userworks, swap the
Notification model, to customize it.In order to do that, you should create a model that inherits fromAbstractNotification:fromdjango.dbimportmodelsfromsnitch.modelsimportAbstractNotificationclassNotification(AbstractNotification):"""Custom notification."""extra_field=models.BooleanField(default=False)And after that, specify it in the settings:SNITCH_NOTIFICATION_MODEL="app.Notification"
Package: django-snoopy
Django Snoopy is a pluggable profiling tool for Django AppsQuick StartAddsnoopy.middleware.SnoopyProfilerMiddlewareto MIDDLEWARE_CLASSES(Optional) Configure Output if you don’t want to use the default log file outputProfile your code!Setting Custom Attributes:In case you want to track something specific to your app, you can do this:from snoopy.request import SnoopyRequest
SnoopyRequest.record_custom_attributes({‘key’: ‘value’})Any value set twice will just be overridden.IMPORTANT: The data passed into this MUST be a JSON serializable dictionary.Settings:You can set these in your Django settings.py file to configure how Snoopy worksSNOOPY_COLLECT_SQL_QUERIES: TrueTrack all SQL queries done via the Django ORMSNOOPY_OUTPUT_CLASS: ‘snoopy.output.LogOutput’Set the class that defines how the collected info is processed at the end of the request. The options available out of the box are:snoopy.output.LogOutput: This will create a file for each request in the folder specified bySNOOPY_LOG_OUTPUT_DIR. Defaults to the root folder of the appsnoopy.output.HTTPOutput: This will make a JSON formatted HTTP POST with the data inSNOOPY_HTTP_OUTPUT_URLYou can write your own Output class. All you need to do is to extendsnoopy.output.OutputBaseand implement thesave_request_datamethod.SNOOPY_USE_CPROFILE: FalseSet to True if you want profilingSNOOPY_CPROFILE_SHOW_ALL_FUNCTIONS: TrueIf this option is set to False, django-snoopy will take the parent directory of the main django settings file as the project root and will only list items in the cProfile output that are files under this directory (your actual app code)DEFAULT_USE_BUILTIN_PROFILER’: FalseSet to True if you want to use the built-in profiler/tracerDEFAULT_BUILTIN_PROFILER_SHOW_ALL_FUNCTIONS’: TrueLike the cProfile option counterpart, allows you to specify if you want data about all or just your own code.
Package: django-sns-mobile-push-notification
=====Django SNS Mobile Push Notifications=====Send mobile push notification to IOS and android devices using Amazon SNS.[![Documentation Status](https://readthedocs.org/projects/django-sns-mobile-push-notification/badge/?version=latest)](http://django-sns-mobile-push-notification.readthedocs.io/en/latest/?badge=latest)Documentation-----------https://django-sns-mobile-push-notification.readthedocs.io/Project Home------------https://github.com/fuzz-productions/django-sns-mobile-push-notificationPyPi------------https://pypi.python.org/pypi/django-sns-mobile-push-notification
Package: django-sns-sqs-services
## Paquete con funciones de ayuda para envio de mensajeria sns, sqs de AWS (obligatorias) ##Para poder operar con este paquete de forma correcta, no olvidar setear estas variables en su settings.pyAWS_REGION_NAME= os.environ.get(‘AWS_REGION_NAME’)AWS_ACCESS_KEY_ID= os.environ.get(‘AWS_ACCESS_KEY_ID’)AWS_SECRET_ACCESS_KEY= os.environ.get(‘AWS_SECRET_ACCESS_KEY’)## Variables de Entorno para disitntos Ambientes (no obligatorias) ##ENVIRONMENT= “STAGING” OR “PRODUCTION” OR “DEVEL” OR “LOCAL”COUNTRY_PREFIX= “CL” OR “MX”# Estas variabes se agregaran automaticamente como atributo en los mensajes SNS### Para instalar este paquete use pip de la siguiente forma: ###pip install django-sns-sqs-services### Para uso de este paquete, importe la libreria de la siguiente forma: ###from sns_sqs_services.services import SqsService, SnsService
Package: django-sns-view
.. image:: https://travis-ci.org/deep-c/django-sns-view.svg?branch=master:target: https://travis-ci.org/deep-c/django-sns-view===============Django SNS View===============A drop in configurable django view that is used to subscribe and process AWS SNS messages.Installation------------.. code-block:: bashpip install django-sns-viewDefault Django Settings----------------------.. code-block:: pythonSNS_CERT_DOMAIN_REGEX = r"sns.[a-z0-9\-]+.amazonaws.com$" # Regex to match on cert domainSNS_VERIFY_CERTIFICATE = True # Whether to verify signature against certificateSNSEndpoint Attributes----------------------.. code-block:: pythonmessage_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-----------.. code-block:: pythonfrom django_sns_view.views import SNSEndpointclass MySNSView(SNSEndpoint):# Can override SNSEndpoint attributes outlined abovedef handle_message(self, message, payload):# Process the message