Skip to main content

An opinionated library for pub/sub over SQS and SNS

Project description

TQP

An opinionated library for pub/sub over SQS and SNS

Topic

To publish on a topic:

topic = Topic('widgets--created')
topic.publish({'id': '123456'})

Topic Queue Poller

To read from the topic:

poller = TopicQueuePoller('my_poller')

@poller.handler('widgets--created')
def process_created_widget(item):
    widget_id = item['id']
    print(f'Widget {widget_id} was created')

poller.start()

A Flask binding is also provided:

poller = FlaskTopicQueuePoller('my_poller', app=flask_app)

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

tqp-0.4.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

tqp-0.4.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file tqp-0.4.2.tar.gz.

File metadata

  • Download URL: tqp-0.4.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for tqp-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a97ca381dd1047dd96687bc39896724cd61f9fa2ee226fa0562af07e96219245
MD5 fd0cf9cf6eea6c5d3f8b71002f430649
BLAKE2b-256 5ec03bb18e51bec2ce5773b7a58d78fec4e9869b5eeb8710fa2ddf4e632ee9e2

See more details on using hashes here.

File details

Details for the file tqp-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: tqp-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0

File hashes

Hashes for tqp-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 173c3ccfde26655b96d2f855ab6ff4587a493c4a7bdcb62c2d67150976b4f19b
MD5 81ed7b06eefec472cb25834f9db7e01a
BLAKE2b-256 d9eb3e2ccb5836f05e13055eb509e826f58eae1b3873f827bd045c4c80332094

See more details on using hashes here.

Supported by

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