Skip to main content

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:

  1. create your notice types
  2. create your notice templates
  3. 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 type
  • display is what the user sees as the name of the notification type
  • description 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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sqs_mq-0.0.4-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for django-sqs-mq-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9de7b1c6b9b82e6ba93c32d84fad4966457104656fee76ac3c5d2d1128f210d5
MD5 25fe34e0edbca6cbc270555e9117e2f6
BLAKE2b-256 9ed616cc79974bb906ef112f5d10d3a32d97a3cefa1aff3f7e3373e9b6a10326

See more details on using hashes here.

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

Hashes for django_sqs_mq-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f04c017b16f1b75c6707d6cd76e4045de75b76c86a162fac1dc589bd81d4c261
MD5 47c790ecc017243d2be6248e54b77451
BLAKE2b-256 b4515065acfe6cd5b710db5f03c97625db4b1f5f3e576a17c29294750a983209

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page