{"id":27185556,"url":"https://github.com/red-green-blue2/mooq","last_synced_at":"2026-03-27T04:41:57.079Z","repository":{"id":57443099,"uuid":"96751620","full_name":"Red-Green-Blue2/mooq","owner":"Red-Green-Blue2","description":"An asyncio compatible library for interacting with a RabbitMQ AMQP broker","archived":false,"fork":false,"pushed_at":"2017-08-30T01:27:04.000Z","size":136,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T20:19:59.821Z","etag":null,"topics":["amqp","amqp0-9-1","asyncio","python","python-3-6","rabbitmq"],"latest_commit_sha":null,"homepage":"http://mooq.readthedocs.io/en/latest/","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/Red-Green-Blue2.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-10T08:01:01.000Z","updated_at":"2024-01-03T14:14:59.000Z","dependencies_parsed_at":"2022-09-26T17:21:33.076Z","dependency_job_id":null,"html_url":"https://github.com/Red-Green-Blue2/mooq","commit_stats":null,"previous_names":["red-green-blue2/mooq","jeremyarr/mooq"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Green-Blue2%2Fmooq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Green-Blue2%2Fmooq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Green-Blue2%2Fmooq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Red-Green-Blue2%2Fmooq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Red-Green-Blue2","download_url":"https://codeload.github.com/Red-Green-Blue2/mooq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083541,"owners_count":21045120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","amqp0-9-1","asyncio","python","python-3-6","rabbitmq"],"created_at":"2025-04-09T17:53:45.827Z","updated_at":"2026-03-27T04:41:57.034Z","avatar_url":"https://github.com/Red-Green-Blue2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: docs/_static/logo_full2.png\n\n.. image:: http://tactile.com.au/jenkins/buildStatus/icon?job=mooq1\n    :target: https://github.com/jeremyarr/mooq\n\n.. image:: https://img.shields.io/pypi/l/mooq.svg\n    :target: https://pypi.python.org/pypi/mooq\n\n.. image:: https://tactile.com.au/badge-server/coverage/mooq1\n    :target: https://github.com/jeremyarr/mooq\n\n.. image:: https://img.shields.io/pypi/pyversions/mooq.svg\n    :target: https://pypi.python.org/pypi/mooq\n\n.. image::  https://img.shields.io/pypi/status/mooq.svg\n    :target: https://pypi.python.org/pypi/mooq\n\n.. image:: https://img.shields.io/pypi/implementation/mooq.svg\n    :target: https://pypi.python.org/pypi/mooq\n\n\n`mooq \u003chttps://github.com/jeremyarr/mooq\u003e`_ is an asyncio compatible library for interacting with a `RabbitMQ \u003chttps://www.rabbitmq.com\u003e`_ AMQP broker.\n\nFeatures\n---------\n\n- Uses asyncio. No more callback hell.\n- Simplified and pythonic API to RabbitMQ\n- Built on top of the proven `pika \u003chttps://github.com/pika/pika\u003e`_ library\n- Comes with an in memory broker for unit testing projects that depend on RabbitMQ\n\nGet It Now\n-----------\n\n.. code-block:: bash\n\n    $ pip install mooq\n\nJust mooq it\n--------------\n\nCreating a connection:\n\n.. code-block:: python\n\n    conn = await mooq.connect(\n                host=\"localhost\",\n                port=5672, \n                broker=\"rabbit\"\n                )\n\nCreating a channel of the connection:\n\n.. code-block:: python\n\n    chan = await conn.create_channel()\n\nRegistering a producer:\n\n.. code-block:: python\n\n    await chan.register_producer(\n            exchange_name=\"log\",\n            exchange_type=\"direct\")\n\nRegistering a consumer and associated callback:\n\n.. code-block:: python\n\n    async def yell_it(resp):\n        print(resp['msg'].upper())\n\n    await chan.register_consumer( \n            exchange_name=\"log\", \n            exchange_type=\"direct\",\n            routing_keys=[\"greetings\",\"goodbyes\"],\n            callback = yell_it)\n\nPublishing a message:\n\n.. code-block:: python\n\n    await chan.publish(exchange_name=\"log\",\n                       msg=\"Hello World!\",\n                       routing_key=\"greetings\")\n\n\nProcess messages asynchronously, running associated callbacks:\n\n.. code-block:: python\n\n    loop = asyncio.get_event_loop()\n    loop.create_task(conn.process_events())\n\n\nMore at https://mooq.readthedocs.io\n-------------------------------------\n\nProject Links\n-------------\n\n- Docs: https://mooq.readthedocs.io/\n- Changelog: https://mooq.readthedocs.io/en/latest/changelog.html\n- PyPI: https://pypi.python.org/pypi/mooq\n- Issues: https://github.com/jeremyarr/mooq/issues\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE \u003chttps://github.com/jeremyarr/mooq/blob/master/LICENSE\u003e`_ file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-green-blue2%2Fmooq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fred-green-blue2%2Fmooq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fred-green-blue2%2Fmooq/lists"}