{ "info": { "author": "Kenichi Maehashi", "author_email": "webmaster@kenichimaehashi.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "|Travis|_ |Coveralls|_ |PyPi|_\n\n.. |Travis| image:: https://api.travis-ci.org/kmaehashi/sensorbee-python.svg?branch=master\n.. _Travis: https://travis-ci.org/kmaehashi/sensorbee-python\n\n.. |Coveralls| image:: https://coveralls.io/repos/kmaehashi/sensorbee-python/badge.svg?branch=master&service=github\n.. _Coveralls: https://coveralls.io/r/kmaehashi/sensorbee-python\n\n.. |PyPi| image:: https://badge.fury.io/py/sensorbee-python.svg\n.. _PyPi: https://badge.fury.io/py/sensorbee-python\n\nsensorbee-python\n================\n\nThis is a Python client library for `SensorBee `_ REST / WebSocket API.\nThis library also provides utility commands (``sbstat`` and ``sbpeek``) which can be used to inspect SensorBee topology.\n\nInstall\n-------\n\n::\n\n pip install sensorbee-python\n\nTo use WebSocket Client API, you also need to install `websocket-client `_:\n\n::\n\n pip install websocket-client\n\nRequirements\n------------\n\n* Python 2.7, 3.3, 3.4, 3.5 or 3.6.\n\nUsage\n-----\n\nPython API\n~~~~~~~~~~\n\nIn most cases the only class you need to use is ``pysensorbee.api.SensorBeeAPI``.\nHere is an example:\n\n.. code-block:: python\n\n from pysensorbee import SensorBeeAPI\n\n api = SensorBeeAPI('127.0.0.1', 15601)\n api.create_topology('test')\n api.query('test', 'CREATE SOURCE ns TYPE node_statuses;')\n for r in api.query('test', 'SELECT RSTREAM * FROM ns [RANGE 1 TUPLES];'):\n print(r)\n\nSee ``pydoc pysensorbee.api`` for details.\n\nCommands\n~~~~~~~~\n\n``sbstat`` provides a brief summary of the topology status.\n\n::\n\n $ sbstat -H 127.0.0.1 -P 15601 -t test\n Node Status Received Error Output Sent Queued Dropped\n -> node_stats running (total) 5381 0\n sensorbee_tmp_8 5381 0 (0.0%)\n :: sensorbee_tmp_8 running 5381 0 (total) 5381 0\n sensorbee_tmp_select_sink_7 5381 0 (0.0%)\n <- sensorbee_tmp_select_sink_7 running 5381 0\n\nSources, streams and sinks are indicated by ``->``, ``::`` and ``<-``, respectively.\n\n``sbpeek`` can be used to peek what tuple is currently running through the specified source or stream.\n\n::\n\n $ sbpeek -H 127.0.0.1 -P 15601 -t test -1 node_stats\n {\"behaviors\": {\"remove_on_stop\": false, \"stop_on_disconnect\": false}, \"node_type\": \"source\", \"output_stats\": {\"num_sent_total\": 5893, \"outputs\": {\"sensorbee_tmp_58\": {\"queue_size\": 1024, \"num_sent\": 0, \"num_queued\": 0}, \"sensorbee_tmp_8\": {\"queue_size\": 1024, \"num_sent\": 5893, \"num_queued\": 0}}, \"num_dropped\": 0}, \"state\": \"running\", \"node_name\": \"node_stats\"}\n\nSee ``sbstat --help`` and ``sbpeek --help`` for details.\n\nNotice\n------\n\n* This library is not a part of the official SensorBee project.\n* In addition to APIs documented in the `API Specification Version 1 `_, this library supports some undocumented APIs, including WebSocket API.\n* This project is a successor of `beepy `_.\n\nLicense\n-------\n\nMIT License", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kmaehashi/sensorbee-python", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "sensorbee-python", "package_url": "https://pypi.org/project/sensorbee-python/", "platform": "", "project_url": "https://pypi.org/project/sensorbee-python/", "project_urls": { "Homepage": "https://github.com/kmaehashi/sensorbee-python" }, "release_url": "https://pypi.org/project/sensorbee-python/0.3.2/", "requires_dist": null, "requires_python": "", "summary": "SensorBee API Client", "version": "0.3.2" }, "last_serial": 3959855, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "afb7c6ba3bea27a04286b76a7914129d", "sha256": "d1645a2b9ab8362a0687a130a09380fbc41ae121ae08f11fcf319e87386937dc" }, "downloads": -1, "filename": "sensorbee-python-0.1.0.tar.gz", "has_sig": false, "md5_digest": "afb7c6ba3bea27a04286b76a7914129d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7050, "upload_time": "2016-12-20T05:06:38", "url": "https://files.pythonhosted.org/packages/23/9f/23f45d833ebfbc0f37a59d6cfa2a861bbc53fd747eedb2287a43d000714f/sensorbee-python-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "24c66e8e5c53c04c008443c6b9820828", "sha256": "4982ec138a106ae615ab61b4f7202caf61d1c772662d431ea9768d1bdff545e4" }, "downloads": -1, "filename": "sensorbee-python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "24c66e8e5c53c04c008443c6b9820828", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6991, "upload_time": "2016-12-20T05:45:26", "url": "https://files.pythonhosted.org/packages/64/2c/6b33ee04d2a9d372f099ee20bacc73cf193492a0ad6d7dfa0eda09b73d1d/sensorbee-python-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0bbd18fffa39a9530f6678afc6200c59", "sha256": "f1a813a0151cd7d710162b6cf7db886f8e3b312a9d9d91e5e9376c7415d14005" }, "downloads": -1, "filename": "sensorbee-python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0bbd18fffa39a9530f6678afc6200c59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7743, "upload_time": "2016-12-24T16:24:46", "url": "https://files.pythonhosted.org/packages/f1/17/cfb2e08ddcba06d967789804c0d85e3d47de419827b3c846e2f1dfb4b3c3/sensorbee-python-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b155bbb9a7f26e8c0cc3359c66bb5b02", "sha256": "2f23b40e7e5ea5c17beeb3dd64241265ee2faeb88954727783359d3ed660be47" }, "downloads": -1, "filename": "sensorbee-python-0.2.0.tar.gz", "has_sig": false, "md5_digest": "b155bbb9a7f26e8c0cc3359c66bb5b02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8380, "upload_time": "2017-02-06T08:42:47", "url": "https://files.pythonhosted.org/packages/45/88/f579a2ce1e241ecee4347f1ae48cf1ee38f94982c53d1b3cc59fe25bc070/sensorbee-python-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "3cb8a52f9ccb450f2c6803f256410439", "sha256": "1aebd3a042f6d3b541573a7588cccf74609a2412d2b4caf05e07dc93b7905720" }, "downloads": -1, "filename": "sensorbee-python-0.2.1.tar.gz", "has_sig": false, "md5_digest": "3cb8a52f9ccb450f2c6803f256410439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8752, "upload_time": "2017-05-01T04:24:09", "url": "https://files.pythonhosted.org/packages/27/dc/170b6af953b4ba0b1fa7ef402a3dff53e39027ca99da2d51ea545b78c3d5/sensorbee-python-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "4aacdf1ebfe19e93430ab9a62a58830e", "sha256": "f2cb7ed4ba68c7a1a5061beff725369eaf18aebf1cfc00f2dc3a2f6dc98c0558" }, "downloads": -1, "filename": "sensorbee-python-0.2.2.tar.gz", "has_sig": false, "md5_digest": "4aacdf1ebfe19e93430ab9a62a58830e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9977, "upload_time": "2017-08-25T06:10:39", "url": "https://files.pythonhosted.org/packages/a3/6a/d38f7ede783337622bb58e4de0f24ab23f873f5b44020373bdfabd17afb1/sensorbee-python-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "5099199c079f7f3652671d5884ec683a", "sha256": "ec49d3644daa92750b3defe92b93f999ad57ed14c29afbb57bb7933fbefc0330" }, "downloads": -1, "filename": "sensorbee-python-0.3.0.tar.gz", "has_sig": false, "md5_digest": "5099199c079f7f3652671d5884ec683a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9071, "upload_time": "2017-09-01T09:12:20", "url": "https://files.pythonhosted.org/packages/28/81/6f610851c52baa9f2e8c9f0738aa5cfb20dabe7af8b7963677df0dbc3b28/sensorbee-python-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "805b848235a9d0038b5d3ab975dd98c1", "sha256": "69812b16c4ae24588bb46f9205e3bfaa52f1035454eed41ea0bb6def3fd20c88" }, "downloads": -1, "filename": "sensorbee-python-0.3.1.tar.gz", "has_sig": false, "md5_digest": "805b848235a9d0038b5d3ab975dd98c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10679, "upload_time": "2017-09-07T06:35:25", "url": "https://files.pythonhosted.org/packages/4f/6c/1a31f3dc8ec9fd900f208b2d792ff0838ddc00fdcfda793a41856c30be1a/sensorbee-python-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "5ff0d0452de9d50500d26de0ff833191", "sha256": "62cf44f1cc8fd26d4f863d466cf156935ff7d1a0ee3737f0e19847d504cadb06" }, "downloads": -1, "filename": "sensorbee-python-0.3.2.tar.gz", "has_sig": false, "md5_digest": "5ff0d0452de9d50500d26de0ff833191", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10680, "upload_time": "2018-06-14T03:43:41", "url": "https://files.pythonhosted.org/packages/85/11/6edf0e788c943c0891274710330dea8fb0845d7b08d7b757d02811e285de/sensorbee-python-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ff0d0452de9d50500d26de0ff833191", "sha256": "62cf44f1cc8fd26d4f863d466cf156935ff7d1a0ee3737f0e19847d504cadb06" }, "downloads": -1, "filename": "sensorbee-python-0.3.2.tar.gz", "has_sig": false, "md5_digest": "5ff0d0452de9d50500d26de0ff833191", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10680, "upload_time": "2018-06-14T03:43:41", "url": "https://files.pythonhosted.org/packages/85/11/6edf0e788c943c0891274710330dea8fb0845d7b08d7b757d02811e285de/sensorbee-python-0.3.2.tar.gz" } ] }