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_async: Run a coroutine in sync, even if the async event loop is running.
  • run_sync: An alias of asyncio.to_thread. Run a coroutine in a separate thread, blocking until it's done.
  • SemGroup: A task group with a semaphore, allowing limited concurrency.
  • gather: A better asyncio.gather that supports limited concurrency and exception handling.
  • gather_all: A variant of gather that returns all results, including exceptions, without raising them.

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.1.0.tar.gz (6.2 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.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: asyncio_addon-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 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.1.0.tar.gz
Algorithm Hash digest
SHA256 d4a5a4b2010f3fcbea131e2b00cd55b9c7cb75945dc4230c4a1d7c971887ca55
MD5 ad80ef76b99553264b5a447e15abf927
BLAKE2b-256 19930f5e0af9d594ea61da98960840ac7686792e143dba1dd7231b1817376467

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_addon-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: asyncio_addon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 055dacaf6ee0255cbd7aa3728fe054712efb39e9a350acf5121611779d71dd32
MD5 0572dd2cfcbee9fcab6de46d07d5e7a0
BLAKE2b-256 5ec875586ec5ec2eb819fa69c4c4493d838e09dc4ff87b742b9f3e2d75bdfe05

See more details on using hashes here.

Provenance

The following attestation bundles were made for asyncio_addon-0.1.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