Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A fast and simple message broker with content-based routing.

Project description

# Qabal

Qabal is a simple and fast open source content-based message broker. Use Qabal to organize all your multi-stage analytical workloads.

Qabal has no install dependencies outside of the default Python runtime. Use it on your Raspberry Pi, laptop, or 100 node Dask cluster. Routing decisions in Qabal take constant time, so you can use it for complex multistage analytics with thousands of steps. It's lightweight, simple to understand, easy to integrate with distributed task libraries (eg. Dask) and fast to execute.

Qabal analytics need not be aware that they are part of a message broker pipeline. They don't need to depend or import any Qabal library. The data structure used in routing extends the standard Python dictionary. Qabal comes with ready to use reflection-based content injection, giving users flexibility on the API of their analytics.

### Installation

pip install qabal

### Example

Qabal has a simple API that revolves around attaching functions to a Session object.

from qabal import Session, Item

def foo(item):
item['foo'] = 'foo'
return item

def bar(item):
item['bar'] = 'bar'
return item

def baz(item):
item['baz'] = 'baz'
return item

def bar_baz(item):
item['bar'] = 'bar!'
item['baz'] = 'baz!'
return item

def parameters_are_okay_too(foo, bar):
return {'baz': foo+bar}

sess = Session()
sess.add(foo, Item['type'] == 'foo')
sess.add(bar, Item['foo'] == 'foo')
res = sess.feed({'type': 'foo'})

# The session is mutable at any time.
bar_baz = sess.add(bar_baz, Item['bar'] == 'bar')
res = sess.feed({'type': 'foo'})

Project details

Release history Release notifications

History Node


History Node


This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
qabal-0.0.2.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Mar 13, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page