Skip to main content

allow a single producer to provide the same payload to multiple consumers simultaniously

Project description

asyncio-multisubscriber-queue

PyPI version Python Versions License: MIT

Usage

MultisubscriberQueue allows a single producer to provide the same payload to multiple consumers simultaniously. An asyncio.Queue is created for each consumer and each call to MultisubscriberQueue.put() iterates over each asyncio.Queue and puts the payload on each queue.

Please see example.py for a simple example.

Change Log

[0.3.1] - 2021-12-21

  • Change build system from setuptools to poetry

[0.3.0] - 2021-11-08

  • Add type hints and type validation with mypy
  • Replace _QueueContext object with @contextmanager on MultisubscriberQueue.queue()

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

asyncio-multisubscriber-queue-0.3.1.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

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