Skip to main content

Some convenient utilities for asyncio

Project description

asyncio-addon

PyPI version Python versions

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 of asyncio.to_thread. Run a sync function in a separate thread.
  • SemGroup: A task group with a semaphore, allowing limited concurrency.
  • gather_all: Enhanced version of asyncio.gather with concurrency control and improved error handling.

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

asyncio_addon-0.2.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncio_addon-0.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file asyncio_addon-0.2.0.tar.gz.

File metadata

  • Download URL: asyncio_addon-0.2.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asyncio_addon-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e83d00fe464d8151d8502137158ef98db03ab8e6f92330f2ff509c8dd2b6f4a6
MD5 8add73864c0a4bacc2e5f0bf87b12de5
BLAKE2b-256 ea85ff5efb67ee368a8067f2d1897c31a7e212e636fd03de8bfa7cab22622484

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_addon-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on observerw/asyncio-addon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file asyncio_addon-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: asyncio_addon-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asyncio_addon-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a20d6ca45de77c7897eccd813f95876ed9c53ba9fd3ddb87e72f8f9ccd385f37
MD5 17ef780fbfae7678f7ace198988b02f8
BLAKE2b-256 045fa9bc55fab6d68e6dc6c16eff43ec34fa261b64598d1bbf3c68da851d4fcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_addon-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on observerw/asyncio-addon

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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