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 Distributions

a_sync-0.4.0.tar.gz (6.5 kB view details)

Uploaded Source

a_sync-0.4.0.macosx-10.11-x86_64.tar.gz (10.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.4.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for a_sync-0.4.0.tar.gz
Algorithm Hash digest
SHA256 967d013f3014e9ca367f279732fd5551a981f234b47bdec307d77170a406a261
MD5 56ef29797a635b98154f8015172ce8ec
BLAKE2b-256 a34b6ee5349df5f089ae0ff79344170b3eb11d543d5b890396d5ee2930d65520

See more details on using hashes here.

File details

Details for the file a_sync-0.4.0.macosx-10.11-x86_64.tar.gz.

File metadata

File hashes

Hashes for a_sync-0.4.0.macosx-10.11-x86_64.tar.gz
Algorithm Hash digest
SHA256 3d78aa60fc004f6738607bb2be303df5f7ccc1527673004f2c510af7e0e48743
MD5 d04142f25c69d151cd02b8c2f1ba8080
BLAKE2b-256 0e6c213cd6ab74ffd6ff51ef14d3cc056133777ab2eebff37c2a5746707700fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for a_sync-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4ad58b1044980844b4c7257ccfb48fd3db6d5e0fdd53b737c19c10b74cd86a
MD5 c41fbad2dddb63b137d9d7c85a1c661a
BLAKE2b-256 4732f6b5da5e676d08c3c831bbb52995dbf85004fe15a028009169060a60fad9

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 Sentry Error logging StatusPage Status page