A simple wrapper for boto3 for receive, and sending, to an AWS SQS queue.
Project description
django-sqs-mq
概括
Supported Django and Python versions
Django \ Python | 3.4 | 3.5 | 3.6 | 3.7 | 3.8 |
---|---|---|---|---|---|
1.11 | * | * | * | * | * |
2.0 | * | * | * | * | * |
Documentation
Installation
To install django-sqs-mq:
$ pip install django-sqs-mq
Usage
Integrating django-sqs-mq support into your app is a three-step process:
- create your notice types
- create your notice templates
- send notifications
Creating Notice Types
You need to call NoticeType
once to
create the notice types for your application in the database.
label
is the internal shortname that will be used for the typedisplay
is what the user sees as the name of the notification typedescription
is a short description
For example:
import json
from django_sqs.launcher import SqsLauncher
kwargs = {
}
kwargs.update({'logs_type': 'operate_logs'})
SqsLauncher().send_message(json.dumps(**kwargs, ensure_ascii=False))
Contribute
Code of Conduct
License
Copyright (c) 2018-2020 MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-sqs-mq-0.0.4.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for django_sqs_mq-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04c017b16f1b75c6707d6cd76e4045de75b76c86a162fac1dc589bd81d4c261 |
|
MD5 | 47c790ecc017243d2be6248e54b77451 |
|
BLAKE2b-256 | b4515065acfe6cd5b710db5f03c97625db4b1f5f3e576a17c29294750a983209 |