rateLimitedQueues


NamerateLimitedQueues JSON
Version 0.0.2 PyPI version JSON
download
home_pageNone
SummaryA well maintained program to execute functions in queue as if only 1 worker is executing them one by one (High priority first). Works wonders when a series of time consuming tasks has to be performed but they need to be in sequence.
upload_time2024-05-07 21:35:48
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseNone
keywords thread threaded task threaded task queue queues queued tasks
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # rateLimitedQueues v0.0.2

```pip install rateLimitedQueues --upgrade```


###### <br>A well maintained program to execute functions in queue as if only 1 worker is executing them one by one (High priority first). Works wonders when a series of time consuming tasks has to be performed but they need to be in sequence.

<br>To install: 
```
pip install rateLimitedQueues --upgrade
pip3 install rateLimitedQueues --upgrade
python -m pip install rateLimitedQueues --upgrade
python3 -m pip install rateLimitedQueues --upgrade
```


#### <br><br>Using this program is as simple as:
```
from rateLimitedQueues import Manager

rateLimiter = Manager(timeBetweenExecution=1, smallestWaitTime=0)

def mainFunction(url, headers, json, *args, **kwargs):
    sleep(1)
    print(args, kwargs)


for _ in range(10):
    rateLimiter.queueAction(mainFunction, postFunction=functionToCallAfterMainFunction, postKwArgs={"kwarg1":True, "kwarg2": 20},
                            executePriority=3, executeThreaded=False,
                            'https://www.google.com',
                            headers={'Authorization': "Bearer 1234"},
                            json={})
```


###### <br>This project is always open to suggestions and feature requests.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "rateLimitedQueues",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "Bhindi <bhaskarpanja93@gmail.com>",
    "keywords": "thread, threaded, task, threaded task, queue, queues, queued tasks",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/28/e5/dabc81f53381facd8da29660474c2b8542253ab23fe263b0ee2fc2f68999/ratelimitedqueues-0.0.2.tar.gz",
    "platform": null,
    "description": "# rateLimitedQueues v0.0.2\n\n```pip install rateLimitedQueues --upgrade```\n\n\n###### <br>A well maintained program to execute functions in queue as if only 1 worker is executing them one by one (High priority first). Works wonders when a series of time consuming tasks has to be performed but they need to be in sequence.\n\n<br>To install: \n```\npip install rateLimitedQueues --upgrade\npip3 install rateLimitedQueues --upgrade\npython -m pip install rateLimitedQueues --upgrade\npython3 -m pip install rateLimitedQueues --upgrade\n```\n\n\n#### <br><br>Using this program is as simple as:\n```\nfrom rateLimitedQueues import Manager\n\nrateLimiter = Manager(timeBetweenExecution=1, smallestWaitTime=0)\n\ndef mainFunction(url, headers, json, *args, **kwargs):\n    sleep(1)\n    print(args, kwargs)\n\n\nfor _ in range(10):\n    rateLimiter.queueAction(mainFunction, postFunction=functionToCallAfterMainFunction, postKwArgs={\"kwarg1\":True, \"kwarg2\": 20},\n                            executePriority=3, executeThreaded=False,\n                            'https://www.google.com',\n                            headers={'Authorization': \"Bearer 1234\"},\n                            json={})\n```\n\n\n###### <br>This project is always open to suggestions and feature requests.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A well maintained program to execute functions in queue as if only 1 worker is executing them one by one (High priority first). Works wonders when a series of time consuming tasks has to be performed but they need to be in sequence.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/BhaskarPanja93/rateLimitedQueues"
    },
    "split_keywords": [
        "thread",
        " threaded",
        " task",
        " threaded task",
        " queue",
        " queues",
        " queued tasks"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "55bd15d3b6332556e0bae2beb727f2ecc22407e70d92b0883ce14a51676a6417",
                "md5": "da88e328e315876e86927f821192a847",
                "sha256": "6050a24df709ded0ee8d5726dad5d67a50b99484d7e314ea4d19b16be4813690"
            },
            "downloads": -1,
            "filename": "rateLimitedQueues-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da88e328e315876e86927f821192a847",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3837,
            "upload_time": "2024-05-07T21:35:47",
            "upload_time_iso_8601": "2024-05-07T21:35:47.062521Z",
            "url": "https://files.pythonhosted.org/packages/55/bd/15d3b6332556e0bae2beb727f2ecc22407e70d92b0883ce14a51676a6417/rateLimitedQueues-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28e5dabc81f53381facd8da29660474c2b8542253ab23fe263b0ee2fc2f68999",
                "md5": "3db1a3a0716ac518bc6df0908324efcd",
                "sha256": "a4c42b68f1c15937bda7ade916a9ff4ce91c9a22ec0b16a70cb2a9cea43ace4a"
            },
            "downloads": -1,
            "filename": "ratelimitedqueues-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "3db1a3a0716ac518bc6df0908324efcd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3581,
            "upload_time": "2024-05-07T21:35:48",
            "upload_time_iso_8601": "2024-05-07T21:35:48.293034Z",
            "url": "https://files.pythonhosted.org/packages/28/e5/dabc81f53381facd8da29660474c2b8542253ab23fe263b0ee2fc2f68999/ratelimitedqueues-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-07 21:35:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "BhaskarPanja93",
    "github_project": "rateLimitedQueues",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ratelimitedqueues"
}
        
Elapsed time: 0.27746s