{ "info": { "author": "JJ Ben-Joseph", "author_email": "opensource@phrostbyte.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Communications" ], "description": "Qabal\n=====\n\nQabal is a simple and fast open source content-based message broker. Use\nQabal to organize all your multi-stage analytical workloads.\n\nQabal has no install dependencies outside of the default Python runtime.\nUse it on your Raspberry Pi, laptop, or 100 node Dask cluster. Routing\ndecisions in Qabal take constant time, so you can use it for complex\nmultistage analytics with thousands of steps. It\u2019s lightweight, simple\nto understand, easy to integrate with distributed task libraries (eg.\nDask) and fast to execute. It has configurable full pipeline data\nprovenance. In extended provenance mode, Qabal records when every data\nitem is added or updated by what analytic and at what time.\n\nQabal analytics need not be aware that they are part of a message broker\npipeline. They don\u2019t need to depend or import any Qabal library. The\ndata structure used in routing extends the standard Python dictionary.\nQabal comes with ready to use reflection-based content injection, giving\nusers flexibility on the API of their analytics.\n\nInstallation\n~~~~~~~~~~~~\n\n::\n\n pip install qabal\n\nTry It For Yourself\n~~~~~~~~~~~~~~~~~~~\n\nQabal has a simple API that revolves around attaching functions to a\nSession object.\n\nYou define routes in Qabal using a query DSL that resembles Python\nconditional statements. These get \u201ccompiled\u201d into more traditional\nmessage broker routes.\n\n.. code:: python\n\n from qabal import Session, Item\n\n def foo(item):\n item['foo'] = 'foo'\n return item\n\n def bar(item):\n item['bar'] = 'bar'\n return item\n\n def baz(item):\n item['baz'] = 'baz'\n return item\n\n def bar_baz(item):\n item['bar'] = 'bar!'\n item['baz'] = 'baz!'\n return item\n\n def parameters_are_okay_too(foo, bar):\n return {'baz': foo+bar}\n\n # If your trigger query doesn't use the Qabal query language, an analytic need not even depend on Qabal.\n class AnalyticWithMetadata:\n __trigger__ = Item['baz'] == 'baz!'\n __inject__ = True\n __creates__ = 'qux'\n\n def __call__(self, baz):\n return baz + '?'\n\n example = AnalyticWithMetadata()\n # Despite all the Qabal metadata, this analytic still maintains a normal API. \n print(example('hello')) # Outputs: 'hello?'\n\n sess = Session(provenance='extended') # Qabal records a ton of information in this mode.\n sess.add(foo, Item['type'] == 'foo')\n sess.add(bar, Item['foo'] == 'foo')\n res = sess.feed({'type': 'foo'})\n print(res)\n print(res.provenance)\n\n # The session is mutable at any time.\n handle = sess.add(bar_baz, Item['bar'] == 'bar')\n res = sess.feed({'type': 'foo'})\n sess.remove(handle)\n print(res)\n\n sess.add(bar_baz, Item['bar'] == 'bar')\n # Analytics with metadata don't need a route\n sess.add(example)\n res = sess.feed({'type': 'foo'})\n print(res)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.phrostbyte.com/", "keywords": "broker routing content_based", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "qabal", "package_url": "https://pypi.org/project/qabal/", "platform": "", "project_url": "https://pypi.org/project/qabal/", "project_urls": { "Homepage": "https://www.phrostbyte.com/" }, "release_url": "https://pypi.org/project/qabal/0.0.4/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A fast and simple message broker with content-based routing.", "version": "0.0.4" }, "last_serial": 3749721, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "a2416939bd21354c027ca0551e1d68e0", "sha256": "5a9208fdfc881ee0083eee9993986ecd09dd5e4c6d144a64e2f5519e0dc9611c" }, "downloads": -1, "filename": "qabal-0.0.1.tar.gz", "has_sig": true, "md5_digest": "a2416939bd21354c027ca0551e1d68e0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3466, "upload_time": "2018-03-13T18:36:49", "url": "https://files.pythonhosted.org/packages/da/7b/5991dc5de25d0dae93d9c67b89fffc224b66efe6c9cc719c9cc5fd71f60c/qabal-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b6a78155946d6a868d386264507e65ce", "sha256": "d3f45c438aabd1bb4bd1ac6fdd8a7fec994231551bd6dad43bb91a33eb55b7a7" }, "downloads": -1, "filename": "qabal-0.0.2.tar.gz", "has_sig": true, "md5_digest": "b6a78155946d6a868d386264507e65ce", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3608, "upload_time": "2018-03-13T21:25:18", "url": "https://files.pythonhosted.org/packages/2c/f2/516f6e958b69ac56b8417db98adb686ab788f00ee1e2e203779ceab0af98/qabal-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "20dd57997de8f3de848fc2cac0bd19de", "sha256": "c221bd142187fac6f82278525a7f4c160b5429e2e583a475df373d9bfcf6c9cc" }, "downloads": -1, "filename": "qabal-0.0.3.tar.gz", "has_sig": false, "md5_digest": "20dd57997de8f3de848fc2cac0bd19de", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 3805, "upload_time": "2018-03-22T21:19:28", "url": "https://files.pythonhosted.org/packages/ff/f8/5400c9bf522c1666914e61063143c26646374b23f5f283503ceb47e4dd2c/qabal-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "5e73677b5e416466433c8693cddf4763", "sha256": "2b8558bd58c1c71c4fb44e3fb8f31ed4fb58acf9007eac882d8e2f30e237a5bc" }, "downloads": -1, "filename": "qabal-0.0.4.tar.gz", "has_sig": false, "md5_digest": "5e73677b5e416466433c8693cddf4763", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4853, "upload_time": "2018-04-09T20:02:04", "url": "https://files.pythonhosted.org/packages/7c/b6/499cbaecdd36fad729ba927430241d504f9788f0e30ccddd63cc14616085/qabal-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5e73677b5e416466433c8693cddf4763", "sha256": "2b8558bd58c1c71c4fb44e3fb8f31ed4fb58acf9007eac882d8e2f30e237a5bc" }, "downloads": -1, "filename": "qabal-0.0.4.tar.gz", "has_sig": false, "md5_digest": "5e73677b5e416466433c8693cddf4763", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4853, "upload_time": "2018-04-09T20:02:04", "url": "https://files.pythonhosted.org/packages/7c/b6/499cbaecdd36fad729ba927430241d504f9788f0e30ccddd63cc14616085/qabal-0.0.4.tar.gz" } ] }