{ "info": { "author": "Adam Phan", "author_email": "aphansh@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python" ], "description": "===========\nlightqueue\n===========\n\nlightqueue is a lightweight job queue that processes jobs (Python\nfunction calls) from a queue located inside a Redis database.\n\nTo install it:\n\n::\n\n $ pip install lightqueue\n\nAfter you have lightqueue (and Redis) installed, you are ready to start queueing jobs.\nSay you have a function like this in a module called **mymodule**\n\n::\n\n def myfunc(num):\n print sum([x for x in range(num)])\n\nTo add the execution of this function as a job into lightqueue:\n\n::\n\n >>> from lightqueue.queue import Queue\n >>> from mymodule import myfunc\n >>> q = Queue()\n >>> q.enqueue(myfunc, 9999) # add the job myfunc(9999) to the queue\n >>> q.enqueue(myfunc, 1234567) # add the job myfunc(1234567) to the queue\n\nTo start processing these jobs, type this in a shell prompt:\n\n::\n\n $ lightqueue start\n\n\nChange db server\n--------------------\n\nBy default, lightqueue adds jobs to and processes jobs from the Redis server\nlocated at localhost:6379 on db=0. To change any of these settings:\n\n::\n\n >>> Queue q = Queue(host='myredishost', port=7323, db=4)\n\nThen give the lightqueue process the same settings:\n\n::\n\n $ lightqueue start -host myredishost -port 7323 -db 4\n\n\nParallel Processing\n--------------------\n\nBy default, lightqueue processes one job from the queue at a time.\nTo process more than one job at once (let's say 4), start up lightqueue\nwith the following command-line args:\n\n\n::\n\n $ lightqueue start -e parallel -workers 4\n\nThis uses the Python multiprocessing module so be aware of all of the usual\ncaveats of parallel processing.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aphan/lightqueue", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "lightqueue", "package_url": "https://pypi.org/project/lightqueue/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lightqueue/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/aphan/lightqueue" }, "release_url": "https://pypi.org/project/lightqueue/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "lightweight Python job queue with multiprocessing support", "version": "0.1.1" }, "last_serial": 794195, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8139639d784e16d47748e3a19db454e7", "sha256": "69dfdbd5c979ee74f9bd59fe21a7abf4339a55e09e6b043ac9aa6df37aab7fa4" }, "downloads": -1, "filename": "lightqueue-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8139639d784e16d47748e3a19db454e7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5926, "upload_time": "2013-04-04T21:36:48", "url": "https://files.pythonhosted.org/packages/d5/9e/173a9503cbb739af7083fbfe2d214534a24c2565b03b4cf7debaa7c21b59/lightqueue-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "863300ba02af29e195e5c1c6d6e07afe", "sha256": "145e114b5de5e3d00c7c9f49b560c7d25a77fb535f0d1920ec9daaf30b2067c3" }, "downloads": -1, "filename": "lightqueue-0.1.1.tar.gz", "has_sig": false, "md5_digest": "863300ba02af29e195e5c1c6d6e07afe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5922, "upload_time": "2013-04-04T21:46:54", "url": "https://files.pythonhosted.org/packages/fb/95/aa527f0312c089f86e9f4dcb907c329a4e3691724f376b3605294f4ef6c1/lightqueue-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "863300ba02af29e195e5c1c6d6e07afe", "sha256": "145e114b5de5e3d00c7c9f49b560c7d25a77fb535f0d1920ec9daaf30b2067c3" }, "downloads": -1, "filename": "lightqueue-0.1.1.tar.gz", "has_sig": false, "md5_digest": "863300ba02af29e195e5c1c6d6e07afe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5922, "upload_time": "2013-04-04T21:46:54", "url": "https://files.pythonhosted.org/packages/fb/95/aa527f0312c089f86e9f4dcb907c329a4e3691724f376b3605294f4ef6c1/lightqueue-0.1.1.tar.gz" } ] }