{"id":19967660,"url":"https://github.com/oaslananka/rabbitmqwithpython","last_synced_at":"2025-07-04T09:06:36.914Z","repository":{"id":239437500,"uuid":"799532199","full_name":"oaslananka/RabbitMQwithPython","owner":"oaslananka","description":"This project contains a simple example application that demonstrates how to work with the RabbitMQ messaging system using Python. The project includes producer and consumer scripts to help you understand the basic concepts of RabbitMQ.","archived":false,"fork":false,"pushed_at":"2024-05-12T12:40:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T17:47:55.294Z","etag":null,"topics":["amqp","example","message-queue","python","rabbitmq"],"latest_commit_sha":null,"homepage":"","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/oaslananka.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-12T12:32:49.000Z","updated_at":"2024-09-19T15:31:47.000Z","dependencies_parsed_at":"2024-05-12T13:44:19.137Z","dependency_job_id":"a0c41c53-9b18-430a-877d-b665162c8bbb","html_url":"https://github.com/oaslananka/RabbitMQwithPython","commit_stats":null,"previous_names":["oaslananka/rabbitmqwithpython"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oaslananka/RabbitMQwithPython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaslananka%2FRabbitMQwithPython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaslananka%2FRabbitMQwithPython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaslananka%2FRabbitMQwithPython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaslananka%2FRabbitMQwithPython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oaslananka","download_url":"https://codeload.github.com/oaslananka/RabbitMQwithPython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oaslananka%2FRabbitMQwithPython/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263480867,"owners_count":23473164,"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","example","message-queue","python","rabbitmq"],"created_at":"2024-11-13T02:43:24.281Z","updated_at":"2025-07-04T09:06:36.883Z","avatar_url":"https://github.com/oaslananka.png","language":"Python","readme":"# RabbitMQ Sample\r\nRabbitMQ is an open source message queuing software and is used to provide reliable communication between messages. It facilitates asynchronous messaging between components in large and complex systems using the AMQP (Advanced Message Queuing Protocol) protocol. This enables high efficiency and an unbreakable connection between applications.\r\n\r\nBasic Components of RabbitMQ\r\n\r\n- Producer: It is the component that produces messages.\r\n- Consumer: It is the component that receives and processes messages from the queue.\r\n\r\n\r\n\r\n## Scripts\r\n- RabbitMQ Python Producer (Sender) Script: `src/python/producer_sample.py`\r\n- RabbitMQ Python Consumer (Listener) Script: `src/python/consumer_sample.py`\r\n\r\n## Installation\r\n\r\n1 - Erlang Installation:\r\n```\r\nsudo apt update\r\nsudo apt install -y erlang\r\n```\r\n\r\n2- RabbitMQ Installation:\r\n```\r\nsudo apt install -y rabbitmq-server\r\n```\r\n\r\n3 - Starting RabbitMQ Service and Checking the Status:\r\n```\r\nsudo systemctl start rabbitmq-server\r\nsudo systemctl enable rabbitmq-server\r\nsudo systemctl status rabbitmq-server\r\n```\r\n\r\n4 - Enabling Management Interface (optional):\r\n```\r\nsudo rabbitmq-plugins enable rabbitmq_management\r\n```\r\n\r\n\r\n\r\n## Configuration\r\n1. Checking Available Virtual Servers\r\n\t```\r\n\tsudo rabbitmqctl list_vhosts\r\n\t```\r\n\r\n2. Creating a Virtual Server\r\n\t```\r\n\tsudo rabbitmqctl add_vhost /myvhost\r\n\t```\r\n\r\n3. Adding User\r\n\t```\r\n\tsudo rabbitmqctl add_user \u003cusername\u003e \u003cpassword\u003e\r\n\t```\r\n\r\n4. Assigning a Role to the User\r\n\t```\r\n\tsudo rabbitmqctl set_user_tags \u003cusername\u003e administrator\r\n\t```\r\n\r\n5. Setting User Permissions\r\n\t```\r\n\tsudo rabbitmqctl set_permissions -p /myvhost \u003cusername\u003e \".*\" \".*\" \".*\"\r\n\t```\r\n\r\n\r\n\r\n\u003c!-- - User Management: You can create new users and assign specific roles to them.\r\n\t```\r\n\trabbitmqctl add_user \u003cmyuser\u003e \u003cmypassword\u003e\r\n\trabbitmqctl set_user_tags \u003cmyuser\u003e administrator\r\n\trabbitmqctl set_permissions -p / \u003cmyuser\u003e \".*\" \".*\" \".*\"\r\n\t``` --\u003e\r\n\r\n\r\n## Python Usage\r\n\r\nYou can use the pika library to work with RabbitMQ in Python. You should install this library first:\r\n```\r\npip install pika\r\n```\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foaslananka%2Frabbitmqwithpython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foaslananka%2Frabbitmqwithpython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foaslananka%2Frabbitmqwithpython/lists"}