{ "info": { "author": "Jayamine Alupotha", "author_email": "Jayamine.alupotha@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha" ], "description": "TCP-eventbus-client-Python\r\n--------------------------\r\n\r\nIntroduction\r\n------------\r\n\r\nThis is a TCP eventbus implementation for python clients. The protocol is quite simple.\r\nfor more information visit !https://github.com/jaymine/TCP-eventbus-client-Python\r\n\r\n* 4bytes int32 message length (big endian encoding)\r\n* json string\r\n* built-in keys\r\n\r\n 1) type: (String, required) One of \"send\", \"publish\", \"register\", \"unregister\".\r\n \r\n 2) headers: (Object, optional) Headers with JSON format. Value of string type is supported.\r\n \r\n 3) body: (Object, optional) Message content in JSON format.\r\n \r\n 4) address: (String, required) Destination address\r\n \r\n 5) replyAddress: (String, optional) Address for replying. \r\n\r\nexample\r\n-------\r\n\r\n class Client():\r\n\t\r\n\t #Handler\r\n\r\n\t def Handler(self,message):\r\n\t\t if message != None:\r\n\t\t\t print(message['body']['result'],'4');\r\n\r\n\t\teb=Eventbus.Eventbus(Client(),'localhost', 7000)\t\r\n\r\n\t\t#jsonObject -body\r\n\r\n\t\tbody={'msg':'add 4 to 0',}\r\n\r\n\t\t#DeliveryOption\r\n\r\n\t\tdo=DeliveryOption.DeliveryOption();\r\n\t\tdo.addHeader('type','text')\r\n\t\tdo.addHeader('size','small')\r\n\t\tdo.addReplyAddress('add')\r\n\t\tdo.setTimeInterval(5) \r\n\r\n\t\t#register handler\r\n\r\n\t\teb.registerHandler('add',Client.Handler);\r\n\r\n\t\t#send \r\n\r\n\t\teb.send('add',body,do)\r\n\r\n\t\t#close after 5 seconds\r\n\r\n\t\teb.closeConnection(5)\r\n\r\n\r\nsamples\r\n-------\r\nSimple example,\r\nTimeKeeper", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/jaymine/TCP-eventbus-client-Python", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jaymine/TCP-eventbus-client-Python", "keywords": "vertx TCP eventbus clients", "license": "MIT", "maintainer": "Jayamine alupotha", "maintainer_email": "jayamine.alupotha@gmail.com", "name": "vertx-eventbus", "package_url": "https://pypi.org/project/vertx-eventbus/", "platform": "Python 3 and higher", "project_url": "https://pypi.org/project/vertx-eventbus/", "project_urls": { "Download": "https://github.com/jaymine/TCP-eventbus-client-Python", "Homepage": "https://github.com/jaymine/TCP-eventbus-client-Python" }, "release_url": "https://pypi.org/project/vertx-eventbus/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "TCP client module for vertx TCP eventbus bridge", "version": "2.0.0" }, "last_serial": 2264050, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "956d4d871d785f72ebf0faf2d554dc63", "sha256": "dad5d2f98fd3160507b42c977f9b79d4f89a2cc87e5fba99a1ffa7c1aafb4bf2" }, "downloads": -1, "filename": "vertx-eventbus-1-2-0.zip", "has_sig": false, "md5_digest": "956d4d871d785f72ebf0faf2d554dc63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18682, "upload_time": "2016-06-22T17:29:30", "url": "https://files.pythonhosted.org/packages/1c/f5/d925e65a1920a6f53c297f9e02a0affde5fb50c6cdeebf2a0f9342249db9/vertx-eventbus-1-2-0.zip" }, { "comment_text": "", "digests": { "md5": "84a7b6f5f1decdc73f0a4c521723904f", "sha256": "69bd71dd68f1d579c02d162d1a4591346553dedb337ccadd215f5c6dc4da8ede" }, "downloads": -1, "filename": "vertx-eventbus-dev.zip", "has_sig": false, "md5_digest": "84a7b6f5f1decdc73f0a4c521723904f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18679, "upload_time": "2016-06-22T16:56:39", "url": "https://files.pythonhosted.org/packages/94/21/89312821cd573ce9a1954f3d6a5e406825962b3003ff118148ff07ae33c2/vertx-eventbus-dev.zip" } ], "1.2.0": [], "2.0.0": [ { "comment_text": "This is for vert.x 3.3.0 ", "digests": { "md5": "8753f4d7940aad7ece53339a5a98e8b9", "sha256": "5b9fa18fff4a4a6a5cc86f7c5066a803599cebc3f794c9e0bdbd7a1374a3c270" }, "downloads": -1, "filename": "vertx-eventbus-2.0.0.zip", "has_sig": false, "md5_digest": "8753f4d7940aad7ece53339a5a98e8b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25636, "upload_time": "2016-08-05T13:38:19", "url": "https://files.pythonhosted.org/packages/42/67/945c74801023a566fde88df39178fd2cd6441ae3ec124df5ec71139409b7/vertx-eventbus-2.0.0.zip" } ] }, "urls": [ { "comment_text": "This is for vert.x 3.3.0 ", "digests": { "md5": "8753f4d7940aad7ece53339a5a98e8b9", "sha256": "5b9fa18fff4a4a6a5cc86f7c5066a803599cebc3f794c9e0bdbd7a1374a3c270" }, "downloads": -1, "filename": "vertx-eventbus-2.0.0.zip", "has_sig": false, "md5_digest": "8753f4d7940aad7ece53339a5a98e8b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25636, "upload_time": "2016-08-05T13:38:19", "url": "https://files.pythonhosted.org/packages/42/67/945c74801023a566fde88df39178fd2cd6441ae3ec124df5ec71139409b7/vertx-eventbus-2.0.0.zip" } ] }