asyncro


Nameasyncro JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/fladegh/asyncflow
SummarySimple async module based on threading.
upload_time2024-07-22 22:16:25
maintainerNone
docs_urlNone
authorjustflade & nekit270
requires_python>=3.8
licenseNone
keywords async thread threads
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fladegh/asyncflow",
    "name": "asyncro",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "async thread threads",
    "author": "justflade & nekit270",
    "author_email": "apbclub142@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a4/a8/391a82cf44df422e731bda043c4c272ff9793aed9b8a3602e8c80505cee1/asyncro-0.0.1.tar.gz",
    "platform": null,
    "description": "# Asyncro Library #\r\n\r\n## What is this? ##\r\nSimple async module based on threading\r\n\r\n## Quick Guide ##\r\nThe module provides you an easy way to create an async function without using default methods:\r\n\r\n\r\n    @asyncro.asynchronous\r\n    def some_function(arr):\r\n        time.sleep(1)\r\n\r\n        for element in arr:\r\n            print(element)\r\n            time.sleep(0.1)\r\n\r\n    some_function(['hello', 'easy', 'async', 'module'])\r\n\r\n    >>>\r\n\r\n    hello\r\n    easy\r\n    async\r\n    module\r\n\r\nJust use the decorator.\r\n\r\n\r\n----------\r\n\r\n\r\n### Using ###\r\n\r\n\r\nUsing the library is as simple and convenient as possible:\r\n\r\nLet's import it first:\r\nFirst, import everything from the library (use the `import asyncro` construct).\r\n\r\nThe `wait` function is used to wait until an asynchronous function completes and returns its result.\r\nIt will block the current thread, or, if it is in an asynchronous function, pause it, waiting for the result.\r\n\r\n\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Simple async module based on threading.",
    "version": "0.0.1",
    "project_urls": {
        "GitHub": "https://github.com/fladegh/asyncflow",
        "Homepage": "https://github.com/fladegh/asyncflow"
    },
    "split_keywords": [
        "async",
        "thread",
        "threads"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7731e05656393f1c4dbe4116decc60a3958be22a28a8d32c236caf12dd994cd0",
                "md5": "7596b7952914384656dd2570ce150155",
                "sha256": "3eee84960bc8b1a16001bdd81f61145b54f58300487347d9f4a5c8786824bc60"
            },
            "downloads": -1,
            "filename": "asyncro-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7596b7952914384656dd2570ce150155",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2434,
            "upload_time": "2024-07-22T22:16:23",
            "upload_time_iso_8601": "2024-07-22T22:16:23.821469Z",
            "url": "https://files.pythonhosted.org/packages/77/31/e05656393f1c4dbe4116decc60a3958be22a28a8d32c236caf12dd994cd0/asyncro-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4a8391a82cf44df422e731bda043c4c272ff9793aed9b8a3602e8c80505cee1",
                "md5": "479c766a117038322228c3e62a8baea4",
                "sha256": "588fd363debb4375c9a5e7e93c4121cb22d6f9831b3f4ee60af621709b941659"
            },
            "downloads": -1,
            "filename": "asyncro-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "479c766a117038322228c3e62a8baea4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2282,
            "upload_time": "2024-07-22T22:16:25",
            "upload_time_iso_8601": "2024-07-22T22:16:25.413209Z",
            "url": "https://files.pythonhosted.org/packages/a4/a8/391a82cf44df422e731bda043c4c272ff9793aed9b8a3602e8c80505cee1/asyncro-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-22 22:16:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fladegh",
    "github_project": "asyncflow",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "asyncro"
}
        
Elapsed time: 0.33473s