Skip to main content

Simple async module based on threading.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asyncro-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asyncro-0.0.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file asyncro-0.0.1.tar.gz.

File metadata

  • Download URL: asyncro-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for asyncro-0.0.1.tar.gz
Algorithm Hash digest
SHA256 588fd363debb4375c9a5e7e93c4121cb22d6f9831b3f4ee60af621709b941659
MD5 479c766a117038322228c3e62a8baea4
BLAKE2b-256 a4a8391a82cf44df422e731bda043c4c272ff9793aed9b8a3602e8c80505cee1

See more details on using hashes here.

File details

Details for the file asyncro-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: asyncro-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for asyncro-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3eee84960bc8b1a16001bdd81f61145b54f58300487347d9f4a5c8786824bc60
MD5 7596b7952914384656dd2570ce150155
BLAKE2b-256 7731e05656393f1c4dbe4116decc60a3958be22a28a8d32c236caf12dd994cd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page