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:

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.1

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

Source distribution (sdist)

Source distribution for deasync 1.0.1
File Size Uploaded Provenance Actions
deasync-1.0.1.zip 4.2 kB Without provenance Details for deasync-1.0.1.zip

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / deasync-1.0.1.zip

Download URL deasync-1.0.1.zip
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f2fb7b986b478ad86dccac21d97c7a6f5faaf6547f5db7436fb43d82bbd64d24
BLAKE2b-256 checksum
How to use checksums
123d31fe5bc237f57f42657a3c3e319c90f1d4f391ca681f04e61ada4ea898ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

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

Security for deasync 1.0.1

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