{ "info": { "author": "Essau Ramirez", "author_email": "saumotions+pypi@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "pysqes\n======\n\n*Simple queue service for python using SQS and boto.*\n\n.. image:: https://travis-ci.org/sauramirez/pysqes.png\n :alt: Build Status\n :target: https://travis-ci.org/sauramirez/pysqes\n\n\nUsage\n======\nIn order to create a task you can use the SQSTask class to create\nan instance that include a function decorator which can be sent\nto the queue when you run the delay method that will be added\nto the function. The delay function takes the parameters that will\nbe used by the worker when it actually executes the task.\n\n.. code-block:: python\n\n from boto.sqs.connection import SQSConnection\n from pysqes.task import Task\n\n conn = SQSConnection('ACCESS_KEY', 'SECRET_KEY')\n queue = Queue(conn, 'pysqes_test', backend=backend)\n\n def add(a, b):\n return a + b\n\n # this will submit a job to the queue\n queue.enqueue(add, 1, 2)\n\nYou can run the task by using the work method included in the\nSQSWorker class, all you need to do is create a worker instance.\n\n.. code-block:: python\n\n from boto.sqs.connection import SQSConnection\n from pysqes.runners.gevent_runner import GeventRunner\n from pysqes.worker import Worker\n\n conn = SQSConnection('ACCESS_KEY', 'SECRETE_KEY')\n runner = GeventRunner()\n queue = Queue(conn, 'pysqes_test', backend=backend)\n worker = Worker(queue, runner=runner)\n\n worker.work()\n\nNew in 0.2\n======\n\nWorker Runners\n=====\nPysqes now supports having different runners, the default one is the\nprocess runner, which will spawn a new a process and run the task in it.\nWe also have a gevent runner, which you can use by using the gevent flag\nin the command line and set the number of threads you would like to have\nrunning. \nNote: It has only been tested with gevent 1.0\n\nCommand line scripts\n=====\nPysqes now comes with command line scripts. The worker command will be the only\none available for this version, but task and peek commands may be coming to 0.3.\n\n.. code-block:: bash\n\n pysqes worker --gevent --workerpath=/home/user/pysqesproj/ --config=pysqesconfig --configpath=/home/user/pysqesproj/settings/\n\nRunning the tests\n======\nIf you are using python 2.7 you can run the unit tests by\nusing the new discover runner included in the unittest module:\n\n.. code-block:: bash\n\n python -m unittest discover -s tests\n\nor you can just run each unit test individually.\n\n\nComing in 0.3\n======\n* New command line scripts.\n* Tests for command line scripts.\n* Better logging.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/sauramirez/pysqes", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sauramirez/pysqes", "keywords": "queue,amazon,distributed", "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "pysqes", "package_url": "https://pypi.org/project/pysqes/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pysqes/", "project_urls": { "Download": "https://github.com/sauramirez/pysqes", "Homepage": "https://github.com/sauramirez/pysqes" }, "release_url": "https://pypi.org/project/pysqes/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A simple queue service using Amazon SQS and boto", "version": "0.2.1" }, "last_serial": 1064878, "releases": { "0.1": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ef0e8cb1887a5ca88030ce7b44906e59", "sha256": "3d25844f289084217ecc0cf40a1608b98ed6b6a5c6f459bb90f0746a53a4e8ed" }, "downloads": -1, "filename": "pysqes-0.1.1.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "ef0e8cb1887a5ca88030ce7b44906e59", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67846, "upload_time": "2013-08-20T18:38:17", "url": "https://files.pythonhosted.org/packages/42/b4/2dcb005bd553962b4ad282e03ddb7ff9fb488672449211f722f6067de840/pysqes-0.1.1.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "0a2040432be55555c937fb0110d56a08", "sha256": "4e532851eccb044514a853260790494a112af917b4b052a5e26d9f21cc078e33" }, "downloads": -1, "filename": "pysqes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0a2040432be55555c937fb0110d56a08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2832, "upload_time": "2013-08-20T18:38:14", "url": "https://files.pythonhosted.org/packages/7e/0f/4dd85c67bc268d613638aa3fb1f945ecfe35cec9ae0ed1927a6b33c6d9a9/pysqes-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ddb5adce1f5255df8ce63c3e421b0251", "sha256": "f3d6197304f154d6129462fa8c78f02e4b3c1b570411ba96918bf522d5804a8d" }, "downloads": -1, "filename": "pysqes-0.1.2.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "ddb5adce1f5255df8ce63c3e421b0251", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67846, "upload_time": "2013-08-20T18:48:42", "url": "https://files.pythonhosted.org/packages/09/43/83261161e14421727dd06a24e50452563ac5adcbad27308a43db6126bdf0/pysqes-0.1.2.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "dcf5564b54f352fabaab634f4bdb4f73", "sha256": "6266092e1cf06a33d8cb5f776dc7b7d40fc238e29d3f72be7a43f53676f83cd7" }, "downloads": -1, "filename": "pysqes-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dcf5564b54f352fabaab634f4bdb4f73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2839, "upload_time": "2013-08-20T18:48:37", "url": "https://files.pythonhosted.org/packages/30/ed/f9b621c318d625234686bf1cf61ea74742fd91574dc2835f30517a84741d/pysqes-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4a99f6f2cc38280c16a87e535c622455", "sha256": "968b4d44a79e0b0e16a1a9a2b0b826f07e11201c5cc1990314736b4dde17e2ca" }, "downloads": -1, "filename": "pysqes-0.1.3.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "4a99f6f2cc38280c16a87e535c622455", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67869, "upload_time": "2013-08-20T18:55:52", "url": "https://files.pythonhosted.org/packages/6d/fa/594fabe58208208023cde77a70c293a1ba7623d7ed8527ab6713644605fe/pysqes-0.1.3.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "d0af1f405640ea19d0beeca135943539", "sha256": "ee14d58e42108a0449ee5ba8438b8422ae57541e69ef13c014047036de5a5a53" }, "downloads": -1, "filename": "pysqes-0.1.3.tar.gz", "has_sig": false, "md5_digest": "d0af1f405640ea19d0beeca135943539", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6605, "upload_time": "2013-08-20T18:55:48", "url": "https://files.pythonhosted.org/packages/aa/57/34725dc80570bc821cf2f8affda7cbd842aa011730404a50136899e1b463/pysqes-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "e6184aee8301e1fd09d7bfab4ddcade9", "sha256": "26f34ad4ddb1227008f0957b2eb0b65cf98e3a07ce6db2dc0b6faa4cef1ce422" }, "downloads": -1, "filename": "pysqes-0.1.4.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "e6184aee8301e1fd09d7bfab4ddcade9", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 67879, "upload_time": "2013-08-20T19:08:47", "url": "https://files.pythonhosted.org/packages/d5/68/5befe0329197ff30d1b0e494b7027a882665bd4268ecd77a451f183d5e77/pysqes-0.1.4.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "566f28332d4a07adaefa4a963d771ad0", "sha256": "0d26250ddf9ad95dfaed81fcd55c02b6d4f995a2d90569aa082974468f55716d" }, "downloads": -1, "filename": "pysqes-0.1.4.tar.gz", "has_sig": false, "md5_digest": "566f28332d4a07adaefa4a963d771ad0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6641, "upload_time": "2013-08-20T19:08:42", "url": "https://files.pythonhosted.org/packages/13/98/60eba9ede17c45aa830ab37a0f8e8cdc6b44be3d45d47f211440c103ca0b/pysqes-0.1.4.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4de4ad8ca1de6bf29fabb2b9e6269261", "sha256": "2b2b71e2e9e18171712dc3be555ebdea0c662bbdc998b669b1ecf2e03994abb3" }, "downloads": -1, "filename": "pysqes-0.2.macosx-10.9-intel.exe", "has_sig": false, "md5_digest": "4de4ad8ca1de6bf29fabb2b9e6269261", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 80020, "upload_time": "2014-02-04T17:09:52", "url": "https://files.pythonhosted.org/packages/ba/07/ee6340d6314a1f60f0be9ba8a066caeec568e681faafa98a509d0117c7c8/pysqes-0.2.macosx-10.9-intel.exe" }, { "comment_text": "", "digests": { "md5": "dbcdef2bd40c1a9a7e54f641e7c92df7", "sha256": "e3cdebc5214ba551c2582329eb83b3b396d579b4019aee9a042b5dae89a77e10" }, "downloads": -1, "filename": "pysqes-0.2.tar.gz", "has_sig": false, "md5_digest": "dbcdef2bd40c1a9a7e54f641e7c92df7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12685, "upload_time": "2014-02-04T17:09:44", "url": "https://files.pythonhosted.org/packages/3b/38/527cf02b1dc9cd28ef607e364e6c7f7fc2e104c56de1ac56fad05ce1501c/pysqes-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "14d1bf7c1ed6241ac51ac04c3c6a59f4", "sha256": "849094c921b3a2ea574321ebdfe78caaa0ffc2f50cd5627ff9a459ab042eb62d" }, "downloads": -1, "filename": "pysqes-0.2.1.tar.gz", "has_sig": false, "md5_digest": "14d1bf7c1ed6241ac51ac04c3c6a59f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12892, "upload_time": "2014-04-18T23:13:38", "url": "https://files.pythonhosted.org/packages/5c/a0/38467a1bc3768641b1e630f15edd355b44f9a5ed3d90cf20552f41ec689c/pysqes-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "14d1bf7c1ed6241ac51ac04c3c6a59f4", "sha256": "849094c921b3a2ea574321ebdfe78caaa0ffc2f50cd5627ff9a459ab042eb62d" }, "downloads": -1, "filename": "pysqes-0.2.1.tar.gz", "has_sig": false, "md5_digest": "14d1bf7c1ed6241ac51ac04c3c6a59f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12892, "upload_time": "2014-04-18T23:13:38", "url": "https://files.pythonhosted.org/packages/5c/a0/38467a1bc3768641b1e630f15edd355b44f9a5ed3d90cf20552f41ec689c/pysqes-0.2.1.tar.gz" } ] }