Skip to main content

Asyncro Library

What is this?

Simple async module based on threading

Quick Guide

The module provides you an easy way to create an async function without using default methods:

@asyncro.asynchronous
def some_function(arr):
    time.sleep(1)

    for element in arr:
        print(element)
        time.sleep(0.1)

some_function(['hello', 'easy', 'async', 'module'])

>>>

hello
easy
async
module

Just use the decorator.


Using

Using the library is as simple and convenient as possible:

Let's import it first: First, import everything from the library (use the import asyncro construct).

The wait function is used to wait until an asynchronous function completes and returns its result. It will block the current thread, or, if it is in an asynchronous function, pause it, waiting for the result.

Metadata

Release files for asyncro 0.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 asyncro 0.0.1
File Size Uploaded
asyncro-0.0.1.tar.gz 2.3 kB Details

Built distribution (wheel)

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

Total release size: 4.7 kB

Release files / asyncro-0.0.1.tar.gz

Download URL asyncro-0.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
588fd363debb4375c9a5e7e93c4121cb22d6f9831b3f4ee60af621709b941659
BLAKE2b-256 checksum
How to use checksums
a4a8391a82cf44df422e731bda043c4c272ff9793aed9b8a3602e8c80505cee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release files / asyncro-0.0.1-py3-none-any.whl

Download URL asyncro-0.0.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3eee84960bc8b1a16001bdd81f61145b54f58300487347d9f4a5c8786824bc60
BLAKE2b-256 checksum
How to use checksums
7731e05656393f1c4dbe4116decc60a3958be22a28a8d32c236caf12dd994cd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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