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.
labelis the internal shortname that will be used for the typedisplayis what the user sees as the name of the notification typedescriptionis 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-sqs-mq-0.0.4.tar.gz.
File metadata
- Download URL: django-sqs-mq-0.0.4.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de7b1c6b9b82e6ba93c32d84fad4966457104656fee76ac3c5d2d1128f210d5
|
|
| MD5 |
25fe34e0edbca6cbc270555e9117e2f6
|
|
| BLAKE2b-256 |
9ed616cc79974bb906ef112f5d10d3a32d97a3cefa1aff3f7e3373e9b6a10326
|
File details
Details for the file django_sqs_mq-0.0.4-py3-none-any.whl.
File metadata
- Download URL: django_sqs_mq-0.0.4-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f04c017b16f1b75c6707d6cd76e4045de75b76c86a162fac1dc589bd81d4c261
|
|
| MD5 |
47c790ecc017243d2be6248e54b77451
|
|
| BLAKE2b-256 |
b4515065acfe6cd5b710db5f03c97625db4b1f5f3e576a17c29294750a983209
|