Skip to main content

Allow a single producer to provide the same payload to multiple consumers simultaneously

Project description

asyncio-multisubscriber-queue

PyPI version Python Versions License: MIT Code style: black

Usage

MultisubscriberQueue allows a single producer to provide the same payload to multiple consumers simultaneously. 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.

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.4.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file asyncio_multisubscriber_queue-0.4.1.tar.gz.

File metadata

  • Download URL: asyncio_multisubscriber_queue-0.4.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.5 Linux/4.19.104-microsoft-standard

File hashes

Hashes for asyncio_multisubscriber_queue-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e414fb7374ebb13bb1689995c308b8b1cc520a0d60b212dd0e05a6e98b6ae723
MD5 684c2427f46e9360e673b1fa27210911
BLAKE2b-256 dc05f9bd03c03def2332f4fd555586f6120786147fca95a745e2d939027e007d

See more details on using hashes here.

File details

Details for the file asyncio_multisubscriber_queue-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncio_multisubscriber_queue-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01820123cf152b694745d5ac7bf6a05068d9bb98d7a7b6487afcda962f5496a0
MD5 fda53f1358531f012e2842a941ed4890
BLAKE2b-256 0177b73dbda4864b774a45038a16a9449e6457fc9ab9909489963ff4156dce5b

See more details on using hashes here.

Supported by

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