Skip to main content

An asyncio.Queue equivalence for asyncgui

Project description

Queue

An asyncio.Queue equivalence 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

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.0.tar.gz (4.0 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.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asyncgui_ext_queue-0.3.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.4 Linux/5.4.0-214-generic

File hashes

Hashes for asyncgui_ext_queue-0.3.0.tar.gz
Algorithm Hash digest
SHA256 69c08824061abe9df881e1cc68836de2c3a6396d11acdc6e5fb6ea7ebeb26fb1
MD5 9a2a887d174523e5c3c148566d2bd249
BLAKE2b-256 4f394aaca620ffcfc62c62f3cab1511167a42b3fac57b739cbb6e4b01f812c55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: asyncgui_ext_queue-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.4 Linux/5.4.0-214-generic

File hashes

Hashes for asyncgui_ext_queue-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf4a0d14787007b3f4dbfa8361fe98d221e87ef60eca8fbc466d62c6b70dc462
MD5 07352432e479a63738873078e70b1d78
BLAKE2b-256 045c77fbae5113cf303438623ab6d3bcf354421d57a677f2fe1fbd8dd5bf3341

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