asyncio-addon
Some convenient utilities for asyncio.
Utilities include:
@async_main: A decorator to run an async function as the main entry point.run_sync: Run a coroutine in sync, even if the async event loop is running.run_async: An alias ofasyncio.to_thread. Run a sync function in a separate thread.SemGroup: A task group with a semaphore, allowing limited concurrency.gather_all: Enhanced version ofasyncio.gatherwith concurrency control, better API and cancel-safety.
(Almost) everything natively include timeout control.
Why do we need another gather_all?
As the doc says:
A new alternative to create and run tasks concurrently and wait for their completion is asyncio.TaskGroup. TaskGroup provides stronger safety guarantees than gather for scheduling a nesting of subtasks: if a task (or a subtask, a task scheduled by a task) raises an exception, TaskGroup will, while gather will not, cancel the remaining scheduled tasks.
Metadata
Release files for asyncio-addon 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| asyncio_addon-0.3.0.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncio_addon-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / asyncio_addon-0.3.0.tar.gz
| Download URL | asyncio_addon-0.3.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22d19dcf8b8a9b1896e69eff3f7f4da4b73dc8f86613b862492921c4f5bdab18
|
|
BLAKE2b-256 checksum How to use checksums |
3efcc677c78922a0e2bc994a1833357460b733f82d036ed5fe551bc6fb74de01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.
Transparency logRelease files / asyncio_addon-0.3.0-py3-none-any.whl
| Download URL | asyncio_addon-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
447c9fcf80d9dbd28de7aa49901b06a6b5c26275cc7ee3e0f163d17ea55f8ff8
|
|
BLAKE2b-256 checksum How to use checksums |
5c32459f435e56a0e1b05beeda41c5f6813a8783f97990720e9e8b6b170bb90e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 5, 2025.
Transparency log