Skip to main content
deasync provides a decorator called `deasync` for Python 3.5 (or higher) to make async functions synchronous in places where only synchronous functions are expected, for example in `unittest.TestCase`:

.. code:: python
from asyncio import sleep
from unittest import TestCase
from deasync import deasync


async def function42():
await sleep(0.001)
return 42


class TestFunction42(TestCase):
@deasync
async def test_function42(self):
result = await function42()
self.assertEquals(42, result)

Metadata

Release files for deasync 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for deasync 1.0.0
File Interpreter ABI Platform Actions
deasync-1.0.0-py3-none-any.whl Python 3 none any Details for deasync-1.0.0-py3-none-any.whl

Release files / deasync-1.0.0-py3-none-any.whl

Download URL deasync-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a28af1e8f2f6da02f1e0dca94ec7489c38a6f62980514ae2f15be8218adc9c2b
BLAKE2b-256 checksum
How to use checksums
46c956833dbad0a5ced7f09c10d173813e812e4b892f1a7dcb5a0f9ed59d6931
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for deasync 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page