Skip to main content

a2s

Python async function to sync function, Convert python async function to a sync function for calling from a normal function in an existing event loop

Usage

import asyncio
from a2s import sync


@sync
async def an_async_func():
    print("Hello World")


def a_sync_func():
    an_async_func()
    pass


async def main():
    a_sync_func()
    pass


if __name__ == '__main__':
    asyncio.run(main())

Metadata

Release files for a2s 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 a2s 1.0.1
File Size Uploaded Provenance Actions
a2s-1.0.1.tar.gz 2.3 kB Without provenance Details for a2s-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 4.7 kB

Release files / a2s-1.0.1.tar.gz

Download URL a2s-1.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7af98893a6235177e3583a1b84a9639f5d69974711aa182fbe41fd2154177173
BLAKE2b-256 checksum
How to use checksums
db78259fdbaf6006401eaf52109113e7a6e65229c9359d2a4f221363d9b4390c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

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

Download URL a2s-1.0.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8da1033832ca1d61a759cc9c5285b75ac2ea915f9038ab5114a6effcb02ad51f
BLAKE2b-256 checksum
How to use checksums
787db015e8169dcdc7793886923742f0ffdd4f10f908886abcb17cf75a03ccf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10

Security for a2s 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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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