Skip to main content

An asyncio.Queue equivalent for asyncgui

Project description

Queue

An asyncio.Queue equivalent for asyncgui.

import asyncgui as ag
from asyncgui_ext.queue import Queue

async def producer(q):
    for c in "ABC":
        await q.put(c)
        print('produced', c)

async def consumer(q):
    async for c in q:
        print('consumed', c)

q = Queue(capacity=1)
ag.start(producer(q))
ag.start(consumer(q))
produced A
produced B
consumed A
produced C
consumed B
consumed C

Installation

Pin the minor version.

poetry add asyncgui-ext-queue@~0.3
pip install "asyncgui-ext-queue>=0.3,<0.4"

Tested on

  • CPython 3.10
  • CPython 3.11
  • CPython 3.12
  • CPython 3.13
  • CPython 3.14

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

asyncgui_ext_queue-0.3.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

asyncgui_ext_queue-0.3.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file asyncgui_ext_queue-0.3.2.tar.gz.

File metadata

  • Download URL: asyncgui_ext_queue-0.3.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for asyncgui_ext_queue-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2f52ef7041ffd487dd4f19c11939f5b6d42091c6b8e3d8885f1ad679968d9c11
MD5 4b993e9784ef2497f31edee79df7ae4a
BLAKE2b-256 2f392749349a50229baf85057ff219a32d09bc86db060eeab15bf890a9d16a99

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncgui_ext_queue-0.3.2.tar.gz:

Publisher: release.yml on asyncgui/asyncgui-ext-queue

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file asyncgui_ext_queue-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncgui_ext_queue-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 802a7b4ddeed806692714f69ea36360bb4d09c22f2e9046e174ca68842d7aa1f
MD5 685718be0b1ed3b53e66f039ed6f72c3
BLAKE2b-256 a096a8f32b7fecc6bbdc6d012e6a6209fb352049c032a9621a8b56bcd496c81d

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncgui_ext_queue-0.3.2-py3-none-any.whl:

Publisher: release.yml on asyncgui/asyncgui-ext-queue

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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