{"id":13807441,"url":"https://github.com/jaymine/TCP-eventbus-client-Python","last_synced_at":"2025-05-14T00:31:29.169Z","repository":{"id":57477442,"uuid":"60855572","full_name":"jaymine/TCP-eventbus-client-Python","owner":"jaymine","description":"vertx tcp eventbus client module for python","archived":false,"fork":false,"pushed_at":"2016-08-05T13:56:20.000Z","size":974,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T02:36:44.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaymine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-10T14:54:02.000Z","updated_at":"2022-11-10T02:41:45.000Z","dependencies_parsed_at":"2022-08-30T17:11:17.969Z","dependency_job_id":null,"html_url":"https://github.com/jaymine/TCP-eventbus-client-Python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaymine%2FTCP-eventbus-client-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaymine%2FTCP-eventbus-client-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaymine%2FTCP-eventbus-client-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaymine%2FTCP-eventbus-client-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaymine","download_url":"https://codeload.github.com/jaymine/TCP-eventbus-client-Python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046308,"owners_count":22005572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T01:01:25.485Z","updated_at":"2025-05-14T00:31:24.132Z","avatar_url":"https://github.com/jaymine.png","language":"Python","funding_links":[],"categories":["Vert.x Event Bus Clients"],"sub_categories":[],"readme":"# TCP-eventbus-client-Python\n\nThis is a TCP eventbus implementation for python clients. The protocol is quite simple:\n\n* 4bytes int32 message length (big endian encoding)\n* json string\n* built-in keys\n\n 1) type: (String, required) One of \"send\", \"publish\", \"register\", \"unregister\".\n \n 2) headers: (Object, optional) Headers with JSON format. Value of string type is supported.\n \n 3) body: (Object, optional) Message content in JSON format.\n \n 4) address: (String, required) Destination address\n \n 5) replyAddress: (String, optional) Address for replying to. \n \n Download: !https://pypi.python.org/pypi/vertx-eventbus/1.0.0\n \n See wiki for more information.\n\nexample:\n\n```python\n    class Client():\n\t\n\t  #Handler\n\t    def Handler(self,message):\n\t\t    if message != None:\n\t\t\t    print(message['body']['result'],'4');\n\n\t\teb=Eventbus.Eventbus(Client(),'localhost', 7000)\t\n\n\t\t#jsonObject -body\n\t\tbody={'msg':'add 4 to 0',}\n\n\t\t#DeliveryOption\n\t\tdo=DeliveryOption.DeliveryOption();\n\t\tdo.addHeader('type','text')\n\t\tdo.addHeader('size','small')\n\t\tdo.addReplyAddress('add')\n\t\tdo.setTimeInterval(5) \n\n\t\t#register handler\n\t\teb.registerHandler('add',Client.Handler);\n\n\t\t#send \n\t\teb.send('add',body,do)\n\n\t\t#close after 5 seconds\n\t\teb.closeConnection(5)\n```\n\nexamples :\nSimple example,\nTimeKeeper\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymine%2FTCP-eventbus-client-Python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymine%2FTCP-eventbus-client-Python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymine%2FTCP-eventbus-client-Python/lists"}