{ "info": { "author": "Tatsuhiko Kubo (cubicdaiya@gmail.com)", "author_email": "cubicdaiya@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "This module is simple Q4M operation wrapper developed by pixiv Inc. for asynchronous upload system\n\nSimple example of usage is followings\n\n >>> from python_q4m.q4m import *\n >>> class QueueTable(Q4M):\n >>> def __init__(self, con):\n >>> super(self.__class__, self).__init__(con)\n >>> self.table = 'queue_table'\n >>> self.columns = ['id',\n >>> 'msg',\n >>> ]\n >>> try:\n >>> con = MySQLdb.connect(host='localhost',\n >>> db=dbname,\n >>> user=username,\n >>> passwd=password,\n >>> )\n >>> q = QueueTable(con)\n >>> q.enqueue([1, 'msg'])\n >>> while q.wait() == 0:\n >>> time.sleep(1);\n >>> res = q.dequeue()\n >>> print res['id']\n >>> print res['msg']\n >>> q.end()\n >>> con.close()\n >>> except MySQLdb.Error, e:\n >>> print 'Error %d: %s' % (e.args[0], e.args[1])\n >>> q.abort()\n >>> con.close()\n\nAnd it is necessary to create following table for above example.\n\nCREATE TABLE `queue_table` (`id` int(11) NOT NULL, `msg` text NOT NULL) ENGINE=QUEUE;", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/cubicdaiya/python-q4m", "keywords": "q4m,mysql,queue", "license": "GPL2", "maintainer": null, "maintainer_email": null, "name": "python_q4m", "package_url": "https://pypi.org/project/python_q4m/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python_q4m/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/cubicdaiya/python-q4m" }, "release_url": "https://pypi.org/project/python_q4m/0.0.6/", "requires_dist": null, "requires_python": null, "summary": "Q4M operation wrapper", "version": "0.0.6" }, "last_serial": 798148, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "b7c48f48a4e71f2e14578f656721fff0", "sha256": "5a6057e91b4fc16150497e7b77f54ddf5d2946acf1e2fb76e01bdfb271d8a52c" }, "downloads": -1, "filename": "python_q4m-0.0.4-py2.6.egg", "has_sig": false, "md5_digest": "b7c48f48a4e71f2e14578f656721fff0", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 4870, "upload_time": "2011-02-19T22:51:49", "url": "https://files.pythonhosted.org/packages/0e/bb/a322ba7a1fbf2313d292a9b725ffdf810f947e8acbe5bb402ef1981bae05/python_q4m-0.0.4-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "cac40e525bedac437bd28556732213d4", "sha256": "3fe9c507d534e53f730a12d935c3012c97908d991c4f9a82b25fb0ca8601a0a6" }, "downloads": -1, "filename": "python_q4m-0.0.4.tar.gz", "has_sig": false, "md5_digest": "cac40e525bedac437bd28556732213d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2224, "upload_time": "2011-02-19T22:51:53", "url": "https://files.pythonhosted.org/packages/4b/14/8928f2f99e2dbab70d04cbb630c69e1fb79e8e5b9b79c82d0d7b75ba12ed/python_q4m-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "built for Linux-2.6.38-8-generic-x86_64-with-glibc2.4", "digests": { "md5": "fd670328af030eb77f84d7daf9cec51c", "sha256": "86b3a4cf27bc2853e9aaa6ceeeb4d66474bbeb1bc0ec43c018061311c63c7a76" }, "downloads": -1, "filename": "python_q4m-0.0.5.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "fd670328af030eb77f84d7daf9cec51c", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3263, "upload_time": "2011-04-30T04:00:37", "url": "https://files.pythonhosted.org/packages/3a/0c/87963d8e1acea38dd139c59fdebbbb93f32dc5f18885d6991f3ade83f2f0/python_q4m-0.0.5.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "c25523e2fca497c46d721d14eb4e5af0", "sha256": "b9d3c00dd5daafa599794dcbb94898481bebfee7cc6e77085cb7bb08efe60ced" }, "downloads": -1, "filename": "python_q4m-0.0.5-py2.7.egg", "has_sig": false, "md5_digest": "c25523e2fca497c46d721d14eb4e5af0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5103, "upload_time": "2011-04-30T04:00:39", "url": "https://files.pythonhosted.org/packages/d0/ca/8a4b67f53d57165d226da44bd69b4dca55a4e3a9f5a324693ec8b9ab2d67/python_q4m-0.0.5-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "a5b19c27e7f370a9be5d04f0d2148874", "sha256": "295c766db1c7d5935e2016951c288acef1e431ca2dd68854dd8d8f38dd09405a" }, "downloads": -1, "filename": "python_q4m-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a5b19c27e7f370a9be5d04f0d2148874", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326, "upload_time": "2011-04-30T04:00:36", "url": "https://files.pythonhosted.org/packages/da/a7/a6d8c9e778b5709f5ae333d136c9041448508ff55f8c16f80ea5c4aa9fb2/python_q4m-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "b63d33d68c0010f39864113884b4c366", "sha256": "6090603cc88c135e34ad7dee7853b33c602e198d7798d97f5183c97b689c5187" }, "downloads": -1, "filename": "python_q4m-0.0.6-py2.7.egg", "has_sig": false, "md5_digest": "b63d33d68c0010f39864113884b4c366", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5161, "upload_time": "2011-05-05T11:03:34", "url": "https://files.pythonhosted.org/packages/39/d8/257741665c6cb96b5335fa15a7955e3c7cca07622e95c76d48ab08de6bc2/python_q4m-0.0.6-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "5662438655e720105bd16d249246882b", "sha256": "a852f1f368dc3e48ebd1849301cfc7cb25b3307e31b058f97a2be598ea9ab90a" }, "downloads": -1, "filename": "python_q4m-0.0.6.tar.gz", "has_sig": false, "md5_digest": "5662438655e720105bd16d249246882b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2336, "upload_time": "2011-05-05T11:03:33", "url": "https://files.pythonhosted.org/packages/b8/09/40d27040fc02e51515b810072e34d888d367f5681f219dc94bfbba05a95a/python_q4m-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b63d33d68c0010f39864113884b4c366", "sha256": "6090603cc88c135e34ad7dee7853b33c602e198d7798d97f5183c97b689c5187" }, "downloads": -1, "filename": "python_q4m-0.0.6-py2.7.egg", "has_sig": false, "md5_digest": "b63d33d68c0010f39864113884b4c366", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5161, "upload_time": "2011-05-05T11:03:34", "url": "https://files.pythonhosted.org/packages/39/d8/257741665c6cb96b5335fa15a7955e3c7cca07622e95c76d48ab08de6bc2/python_q4m-0.0.6-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "5662438655e720105bd16d249246882b", "sha256": "a852f1f368dc3e48ebd1849301cfc7cb25b3307e31b058f97a2be598ea9ab90a" }, "downloads": -1, "filename": "python_q4m-0.0.6.tar.gz", "has_sig": false, "md5_digest": "5662438655e720105bd16d249246882b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2336, "upload_time": "2011-05-05T11:03:33", "url": "https://files.pythonhosted.org/packages/b8/09/40d27040fc02e51515b810072e34d888d367f5681f219dc94bfbba05a95a/python_q4m-0.0.6.tar.gz" } ] }