backports.asyncio.queues: Backport of the standard library module asyncio.queues
Python 3.13 adds a shutdown method to asyncio.queue.Queue. This package ports the feature to Python 3.9 through 3.12.
Consult the 3.13 specific documentation on Queue for usage.
Installation and depending on this library
This module is called backports.asyncio.queues on PyPI. To install it in your local environment, use:
pip install backports.asyncio.queues
Use
The backports.asyncio.queues module should be a drop-in replacement for the Python 3.13 standard library module asyncio.queue. If you do not support anything earlier than Python 3.13, you do not need this library; you may want to use this idiom to "fall back" to backports.asyncio.queues:
try:
from asyncio.queues import Queue, QueueShutDown
except ImportError:
from backports.asyncio.queues import Queue, QueueShutDown
You must import QueueShutDown in order for this pattern to work, as it doesn't exist on Python 3.12 and earlier.
Alternatively, you can use sys.version_info explicitly:
import sys
if sys.version_info >= (3, 13):
from asyncio.queues import Queue
else:
from backports.asyncio.queues import Queue
Metadata
Release files for backports.asyncio.queues 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backports_asyncio_queues-0.1.2.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backports_asyncio_queues-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.0 kB
Release files / backports_asyncio_queues-0.1.2.tar.gz
| Download URL | backports_asyncio_queues-0.1.2.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a742d7c0299de29b6ee5c2a11ef0851a93caf4ae82bcb1ab3989c30f20e7623
|
|
BLAKE2b-256 checksum How to use checksums |
186c8070b0e6a2de4f01110e0b0d876f796c164f00651f996a6668883afa3b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / backports_asyncio_queues-0.1.2-py3-none-any.whl
| Download URL | backports_asyncio_queues-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d5784876bad9b2923a1c5ad3e7c849c6f13269f0e5668c4d2cdae61aae38dda5
|
|
BLAKE2b-256 checksum How to use checksums |
8de6a962474fac3161ae8a255f949dfa3e10e42981b7377933d5d3db02de7810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|