skip to navigation
skip to content

Not Logged In

smoke 0.1.0

concise publish/subscribe utility

Latest Version: 0.2.0


A concise Publish/Subscribe utility module. It supports both free-form signal
names and a stricter style where signals are declared first. You can also mix


.. code::

    import smoke

    class MyCls(smoke.Broker):
        appears = smoke.signal('appears')
        leaves = smoke.signal('leaves')

    def say_hello(what):
        print("hello %s" % (what,))

    def say_goodbye(what):
        print("good bye %s" % (what,))

    o = MyCls()

    # Using broker
    o.subscribe("appears", say_hello)
    o.publish("appears", what='world')

    # Using declared signals
File Type Py Version Uploaded on Size
smoke-0.1.0.tar.gz (md5) Source 2012-12-22 2KB
  • Downloads (All Versions):
  • 9 downloads in the last day
  • 55 downloads in the last week
  • 320 downloads in the last month
  • Author: David Keijser
  • Keywords: publish subscribe pubsub signal
  • License: MIT
  • Package Index Owner: keis
  • DOAP record: smoke-0.1.0.xml