1. SHIBUKAWA Yoshiki
  2. berryMQ

Wiki

Clone wiki

berryMQ / Home

Welcome

berryMQ is a on-memory tiny message queuing library. Project goal is "programmer friendly MQ". This not aims reliability, persistency. It will support closs-languages messaging(Python, Ruby and so on).

Features

Easy to Use!

At first, you should remember only 2 APIs. First one is a "twitter" method. It will send message with ID. Second one is a "following" decorator. The method that is decorated by the decorator will follow specified message ID. If anyone sends that message by twitter method, that method will be called.

You don't have to setup messaging server. Only importing this library, you can use it!

from berrymq import (following, twitter)

# Message receiving sample

class GUIEventHandler(metaclass=Follower)
    @following("gui button:pressed")
    def on_button_click(self, event):
        self.run_batch_job()

# Message sending sample

def start_unittest():
    twitter("unittest:start")
    run_unittest()
    twitter("

Have fun!

Updated