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 | Provenance | Actions |
|---|---|---|---|---|
| backports_asyncio_queues-0.1.2.tar.gz | 9.1 kB | Without provenance | Details for backports_asyncio_queues-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| backports_asyncio_queues-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for backports_asyncio_queues-0.1.2-py3-none-any.whl |
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
|
Security for backports.asyncio.queues 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.