Skip to main content

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.

Download files

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

Source Distribution

a_sync-0.3.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

a_sync-0.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file a_sync-0.3.0.tar.gz.

File metadata

  • Download URL: a_sync-0.3.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for a_sync-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ded292ac9dffdaad3016c2ab5c0821e00da59a75602bce21804cf00234a8adf9
MD5 aca16931da8fd7bae8bcbc2147f8ca97
BLAKE2b-256 e21b62548de10ce64c9d0688dd648a22cb9fe5c7184153a2bd37aa63aa8fa444

See more details on using hashes here.

File details

Details for the file a_sync-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for a_sync-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90800df297844fa10407fe55c80f01da2188af0ebeae0fa83d0d1e2ad932d725
MD5 cdeba514785016934102c12dc1717ab8
BLAKE2b-256 fa1d08be514a63fdb09b0273aac4957c6a34f294a0c6f0f73b5dcf38304f33c4

See more details on using hashes here.

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