{ "info": { "author": "Kelvin Fichter", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "taskdb\n======\n\nTaskDB runs common methods in a single thread\n\nMotivation\n----------\n\nThreads sometimes need to run compute-heavy or network-heavy methods\nthat are expected to return a similar output. Webcrawlers and bots\nacting on those crawlers may wish to decrease network load by limiting\nrequests to a single thread. TaskDB allows multiple threads to ask for\nthe result of a common function without requiring each thread to execute\nthe function.\n\nInstallation\n------------\n\nInstall this package through pip:\n\n::\n\n $ pip install taskdb\n\nBasic Usage\n-----------\n\n.. code:: python\n\n from taskdb import TaskDB\n\n def some_intesive_method(some_argument, some_other_argument):\n # Do something\n\n task_db = TaskDB()\n result = task_db.monitor('SOME_TASK_ID', some_intensive_method, (15, 20))\n print(result)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kfichter/taskdb", "keywords": "sneaker bot development", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "taskdb", "package_url": "https://pypi.org/project/taskdb/", "platform": "", "project_url": "https://pypi.org/project/taskdb/", "project_urls": { "Homepage": "https://github.com/kfichter/taskdb" }, "release_url": "https://pypi.org/project/taskdb/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Task DB", "version": "0.0.1" }, "last_serial": 3337365, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f1405fc39d6653d27b6a3052819b6a65", "sha256": "42cecef1c6e3b004b0176442a4848829f41d160d5493b67b7790030152aaad0d" }, "downloads": -1, "filename": "taskdb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f1405fc39d6653d27b6a3052819b6a65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3086, "upload_time": "2017-11-16T04:00:26", "url": "https://files.pythonhosted.org/packages/14/da/ebf493d62b567067161cb378108001d53aa8f88202687f20732537e9e3d6/taskdb-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f1405fc39d6653d27b6a3052819b6a65", "sha256": "42cecef1c6e3b004b0176442a4848829f41d160d5493b67b7790030152aaad0d" }, "downloads": -1, "filename": "taskdb-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f1405fc39d6653d27b6a3052819b6a65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3086, "upload_time": "2017-11-16T04:00:26", "url": "https://files.pythonhosted.org/packages/14/da/ebf493d62b567067161cb378108001d53aa8f88202687f20732537e9e3d6/taskdb-0.0.1.tar.gz" } ] }