Skip to main content

async helper library.

Project description

When it comes to actually using the async features and the asyncio library in a real project, you don’t want to have to constantly worry about what thread you’re running in, what loop is global and whether or not it’s running. You don’t want to and shouldn’t have to worry about whether asyncio or some other async library (like curio) is running in a higher or lower level than your current abstraction layer in order to use asyncio and await syntax correctly.

This library provides simple functions for:

  • running an async function from a blocking context
  • running a blocking function from an async context
  • running a blocking function in the background
  • running multiple functions in parallel, either asynchronously or in a blocking fashion
  • running multiple functions in series, either asynchronously or in a blocking fashion
  • getting/creating and setting/reverting an independent asyncio event loop to use, regardless of thread or thread-global asyncio loop run status.

See the project site for examples, API doc, and more discussion.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for a-sync, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size a_sync-0.3.0-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size a_sync-0.3.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page