{"id":15728566,"url":"https://github.com/pushyzheng/flask-rabbitmq","last_synced_at":"2026-03-11T05:31:25.142Z","repository":{"id":57430634,"uuid":"138319192","full_name":"pushyzheng/flask-rabbitmq","owner":"pushyzheng","description":"A simple Python Flask combined with RabbitMQ pika library","archived":false,"fork":false,"pushed_at":"2019-07-08T11:35:28.000Z","size":58,"stargazers_count":58,"open_issues_count":4,"forks_count":18,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-05-07T02:27:59.722Z","etag":null,"topics":["amqp","flask","python","rabbitmq"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/flask-rabbitmq","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pushyzheng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-22T15:32:10.000Z","updated_at":"2024-12-10T01:44:45.000Z","dependencies_parsed_at":"2022-08-27T22:30:35.154Z","dependency_job_id":null,"html_url":"https://github.com/pushyzheng/flask-rabbitmq","commit_stats":null,"previous_names":["pushyzqin/flask-rabbitmq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pushyzheng/flask-rabbitmq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fflask-rabbitmq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fflask-rabbitmq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fflask-rabbitmq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fflask-rabbitmq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pushyzheng","download_url":"https://codeload.github.com/pushyzheng/flask-rabbitmq/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pushyzheng%2Fflask-rabbitmq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30372169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amqp","flask","python","rabbitmq"],"created_at":"2024-10-03T23:03:41.646Z","updated_at":"2026-03-11T05:31:24.896Z","avatar_url":"https://github.com/pushyzheng.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-rabbitmq\n\n`flask-rabbitmq` is a frame that simplifies python to operate rabbitmq and can be combined with Flask very well. So you don't need to think about the underlying operations\n\n[中文文档点这](https://github.com/PushyZqin/flask-rabbitmq/blob/dev/documentation/%E4%B8%AD%E6%96%87README.md)\n\n## Install\n\nThis project has been commited to Pypi, can be installed by `pip`:\n\n```shell\n$ pip install flask-rabbitmq\n```\n\n## Features\n\n- Start following Flask app, no consideration about the process blocking\n- Configure by `config.py`\n- Support declaring queue by decorator or register class\n\n## Simple example\n\nFirstly instantiate `RabbitMQ` and `Queue` object in `app/__init__.py` then import `demo` module:\n\n```python\nfrom example.app import app\nfrom flask_rabbitmq import Queue\nfrom flask_rabbitmq import RabbitMQ\n\nqueue = Queue()\nrpc = RabbitMQ(app, queue)\n\nfrom example.app import demo\n```\n\nCreate `demo` package and `__init__.py`file in `app`directory. Now you can declare queue and consumer in `__init__.py`file:\n\n```python\nfrom example.app import rpc,queue\nfrom flask_rabbitmq import ExchangeType\n\n# declare the queue of defaulted exchange by decorator\n@queue(queue_name='helloc')\ndef helloc_callback(ch, method, props, body):\n    print(body)\n\n# declare the queue of topic exchange, flask-rabbitmq will bind automatically by key\n@queue(queue_name='hello-topic', type=ExchangeType.TOPIC, exchange_name='hello-exchange',\n       routing_key='hello-key')\ndef hellp_topic_callback(ch, method, props, body):\n    print(body)\n\nrpc.run()\n```\n\n## Contact me\n\nEmail：\n\n- 1437876073@qq.com\n- pushy.zhengzuqin@gmail.com\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2018 Pushy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushyzheng%2Fflask-rabbitmq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpushyzheng%2Fflask-rabbitmq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpushyzheng%2Fflask-rabbitmq/lists"}