Skip to main content

Asynct

Table of Contents

Overview

Usage

Overview

This package uses threading to create a simple future-like async interface for functions.

Usage

To make a function async you can use the make_asynct decorator:

@make_asynct # Now this function won't block the main thread when ran.
def func(): ...

You can then use the result of the function (which is an asynct object) - either asynchronously or synchronously:

func_asynct = func()

@func_asynct.then
def does_something_with_the_result(result): ...

@does_something_with_the_result.then
def does_another_thing_with_the_result(result): ...

# or

result = func_asynct.await_it()
# ...

Metadata

Release files for asynct 0.0.2

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

Source distribution (sdist)

Source distribution for asynct 0.0.2
File Size Uploaded Provenance
asynct-0.0.2.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 5.5 kB

Release files / asynct-0.0.2.tar.gz

Download URL asynct-0.0.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f6c8fe56b42e86882b2993f5e6bd61f8ea754f09d0f0474dbc76a31ab37db58
BLAKE2b-256 checksum
How to use checksums
645a135eaaf9e0d821a4f0820ca58a714394d4a7276d4ebad8bc7dddf5672f07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / asynct-0.0.2-py3-none-any.whl

Download URL asynct-0.0.2-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
551b814a22ed858f11840e6fe7ca55e57f94e1d28e84c6845c6f9fb83e188e1b
BLAKE2b-256 checksum
How to use checksums
d075f958bb5cf83a4da2b225f42a71bf61a5016f807a47b310fb78f2c704f103
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for asynct 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 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