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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69c08824061abe9df881e1cc68836de2c3a6396d11acdc6e5fb6ea7ebeb26fb1
|
|
| MD5 |
9a2a887d174523e5c3c148566d2bd249
|
|
| BLAKE2b-256 |
4f394aaca620ffcfc62c62f3cab1511167a42b3fac57b739cbb6e4b01f812c55
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf4a0d14787007b3f4dbfa8361fe98d221e87ef60eca8fbc466d62c6b70dc462
|
|
| MD5 |
07352432e479a63738873078e70b1d78
|
|
| BLAKE2b-256 |
045c77fbae5113cf303438623ab6d3bcf354421d57a677f2fe1fbd8dd5bf3341
|