{ "info": { "author": "Hanguangbaihuo", "author_email": "chao.liu@hanguangbaihuo.cn", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Sparrow RabbitMQ Consumer\n\n\n## Introduction\nSparrow rabbitmq consumer is a RabbitMQ (AMQP 0-9-1) client consumer library for Python.\n\n\n* Python 3.5+ are supported.\n\n## Installation\n\n```\npip install sparrow_rabbitmq_consumer\n```\n\n## Example\n\nHere is the most simple example of use\n\n```\nfrom rabbitmq_consumer import RabbitMQConsumer\n\nmessage_broker = \"amqp://admin:12345@localhost:5672\"\nmessage_backend = \"http://127.0.0.1:8001/api/sparrow_task/task/update/\"\n\nconsumer = RabbitMQConsumer(\n queue=\"product\", \n message_broker=message_broker,\n message_backend=message_backend\n)\n\n# \u9700\u8981\u5b9a\u4e49queue\u4e2d\u8ba2\u9605\u7684\u4efb\u52a1\u5bf9\u5e94\u7684\u6267\u884c\u51fd\u6570\ntarget_func_map = {\n \"order_paid\": \"task.order_paid\",\n \"order_shipped\": \"task.order_shipped\",\n \"add_favorite\": \"task.add_favorite\",\n}\nconsumer.target_func_map = target_func_map\nconsumer.consume()\n\n\u53c2\u6570\u8bf4\u660e\uff1a\n queue: rabbitmq\u961f\u5217\u540d\u79f0\n message_broker: rabbitmq\u8fde\u63a5\u8bbe\u7f6e\n message_backend: \u9009\u586b\u7684\u914d\u7f6e\uff0c\u5982\u679c\u8bbe\u7f6e\u4e86message_backend,\u5219\u5728\u4efb\u52a1\u6267\u884c\u5b8c\u6210\u4e4b\u540e\u4f1a\u5411\u8be5\u8bbe\u7f6e\u91cc\u7684url\u53d1\u9001\u4efb\u52a1\u6267\u884c\u5b8c\u6210\u7ed3\u679c\n\n \u5728\u8c03\u7528consumer.consume()\u4e4b\u524d\u9700\u8981\u7ed9 target_func_map\u8d4b\u503c\uff0c\n target_func_map\u5b57\u5178\u4e2d\u7684\u952e\u4e3amessage code\uff0c\u5bf9\u5e94\u7684\u503c\u4e3a\u6267\u884c\u8be5\u6d88\u606f\u7684\u4efb\u52a1\u51fd\u6570\u8def\u5f84\u5b57\u7b26\u4e32\n\n```\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hanguangbaihuo/sparrow_rabbitmq_consumer.git", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "sparrow-rabbitmq-consumer", "package_url": "https://pypi.org/project/sparrow-rabbitmq-consumer/", "platform": "", "project_url": "https://pypi.org/project/sparrow-rabbitmq-consumer/", "project_urls": { "Homepage": "https://github.com/hanguangbaihuo/sparrow_rabbitmq_consumer.git" }, "release_url": "https://pypi.org/project/sparrow-rabbitmq-consumer/0.0.9/", "requires_dist": [ "pika" ], "requires_python": "", "summary": "Sparrow rabbitmq consumer", "version": "0.0.9" }, "last_serial": 5785416, "releases": { "0.0.6": [ { "comment_text": "", "digests": { "md5": "1af042b84c8569acdadb89528527af26", "sha256": "b0196cc555b7592e7449807c8bbcde4ba2bd89c2fd2f4e9583e14bf23b04bf27" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "1af042b84c8569acdadb89528527af26", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8069, "upload_time": "2019-07-17T03:36:54", "url": "https://files.pythonhosted.org/packages/a2/0f/7a02b83d526014bf2d6df78d65991cb4d2bf03d4b492db04f2927f3e5869/sparrow_rabbitmq_consumer-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "027db8bfe55a459fa6064f8856c26edd", "sha256": "9d8bd6903212bba3e616b020e4847cb3b8aec5a0b3cf829b469ac6b67daaf907" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.6.tar.gz", "has_sig": false, "md5_digest": "027db8bfe55a459fa6064f8856c26edd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6007, "upload_time": "2019-07-17T03:36:56", "url": "https://files.pythonhosted.org/packages/2b/e4/4312f50e0c7bba04b297d9a8383dba8c097d419041b0273c02f6fc04f2b3/sparrow_rabbitmq_consumer-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "2cea855d74e1fd88ccf222c0db134952", "sha256": "e0ef5d12122edc2208b1b0b109b1ed625a26257eaaf1bc02bb58fa98b02e715a" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "2cea855d74e1fd88ccf222c0db134952", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8330, "upload_time": "2019-08-20T05:06:38", "url": "https://files.pythonhosted.org/packages/8a/18/5552b2ab7d43c1608b9894946a018e199d61bbde8c3413ea813332714023/sparrow_rabbitmq_consumer-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "28e267ae2588194b7aeed730a9f20ad9", "sha256": "c3cbb8b90c599ce7196aa9762bf80599375b863066c28610df531d2ba425ab29" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.7.tar.gz", "has_sig": false, "md5_digest": "28e267ae2588194b7aeed730a9f20ad9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6303, "upload_time": "2019-08-20T05:06:40", "url": "https://files.pythonhosted.org/packages/a6/82/01e84449b924e01fb138498f3b9406363e1caaf7d18d5c6aed1765e2e34d/sparrow_rabbitmq_consumer-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "8f9b6768098c51ff00299588d27f7b81", "sha256": "2b36dc8881b5c4edd9e3db88bb3af544053db1663c3e555322973f0bd317fd90" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "8f9b6768098c51ff00299588d27f7b81", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7262, "upload_time": "2019-08-20T09:55:31", "url": "https://files.pythonhosted.org/packages/d0/78/f16756e60afa03f4f2fc1b1b2ae7004a21565d5020ba1adb2c99775dabf3/sparrow_rabbitmq_consumer-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "addb42bb7029bdeff439b87e6a894ab3", "sha256": "9a628b0566aa9a90e1247ee9c701313e2479362c889101fea8355d368114f4b6" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.8.tar.gz", "has_sig": false, "md5_digest": "addb42bb7029bdeff439b87e6a894ab3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4875, "upload_time": "2019-08-20T09:55:33", "url": "https://files.pythonhosted.org/packages/75/bc/adc2a46c5bb66f6c0fd6f5d2b4241a33b5afb64520e41e3bf81994226f41/sparrow_rabbitmq_consumer-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "9433df6ab8f4e4ec56ad1f2cf88dfe9f", "sha256": "2844c09a2fbdad615e9c67bf8a53c349df99711c33c7c3b63d519764b2358a44" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "9433df6ab8f4e4ec56ad1f2cf88dfe9f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7274, "upload_time": "2019-09-05T08:54:52", "url": "https://files.pythonhosted.org/packages/a4/14/54828dab7eced61ee888de31f862cb0c035eb7efffee9eb3f50da0c0be7f/sparrow_rabbitmq_consumer-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fce0df55964b3d0673bd4d126900952", "sha256": "9aea957d8b0b013143ce26d9bfae4df4d8382ee5d21efae584b62d48eb7a70ff" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.9.tar.gz", "has_sig": false, "md5_digest": "0fce0df55964b3d0673bd4d126900952", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4927, "upload_time": "2019-09-05T08:54:53", "url": "https://files.pythonhosted.org/packages/f6/d2/31cf85a43c39e385c6be134ce1b2845278f1930b0072e6a06f6b0843a4e9/sparrow_rabbitmq_consumer-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9433df6ab8f4e4ec56ad1f2cf88dfe9f", "sha256": "2844c09a2fbdad615e9c67bf8a53c349df99711c33c7c3b63d519764b2358a44" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "9433df6ab8f4e4ec56ad1f2cf88dfe9f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7274, "upload_time": "2019-09-05T08:54:52", "url": "https://files.pythonhosted.org/packages/a4/14/54828dab7eced61ee888de31f862cb0c035eb7efffee9eb3f50da0c0be7f/sparrow_rabbitmq_consumer-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0fce0df55964b3d0673bd4d126900952", "sha256": "9aea957d8b0b013143ce26d9bfae4df4d8382ee5d21efae584b62d48eb7a70ff" }, "downloads": -1, "filename": "sparrow_rabbitmq_consumer-0.0.9.tar.gz", "has_sig": false, "md5_digest": "0fce0df55964b3d0673bd4d126900952", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4927, "upload_time": "2019-09-05T08:54:53", "url": "https://files.pythonhosted.org/packages/f6/d2/31cf85a43c39e385c6be134ce1b2845278f1930b0072e6a06f6b0843a4e9/sparrow_rabbitmq_consumer-0.0.9.tar.gz" } ] }