{"id":25054558,"url":"https://github.com/dapangmao/vertx-python-client","last_synced_at":"2025-04-14T10:20:31.795Z","repository":{"id":62587317,"uuid":"231438321","full_name":"dapangmao/vertx-python-client","owner":"dapangmao","description":"An asynchronous TCP eventbus Python client","archived":false,"fork":false,"pushed_at":"2020-07-22T13:31:11.000Z","size":32,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:18:20.018Z","etag":null,"topics":["asyncio","python","python3","vertx","vertx-eventbus"],"latest_commit_sha":null,"homepage":null,"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/dapangmao.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":"2020-01-02T18:34:00.000Z","updated_at":"2022-09-17T15:38:37.000Z","dependencies_parsed_at":"2022-11-04T08:21:30.846Z","dependency_job_id":null,"html_url":"https://github.com/dapangmao/vertx-python-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapangmao%2Fvertx-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapangmao%2Fvertx-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapangmao%2Fvertx-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dapangmao%2Fvertx-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dapangmao","download_url":"https://codeload.github.com/dapangmao/vertx-python-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860007,"owners_count":21173342,"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":["asyncio","python","python3","vertx","vertx-eventbus"],"created_at":"2025-02-06T12:17:18.812Z","updated_at":"2025-04-14T10:20:31.760Z","avatar_url":"https://github.com/dapangmao.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"vertx-python-client\n---\n\nAn asynchronous TCP eventbus Python client other than the thread-based [official client](https://github.com/vert-x3/vertx-eventbus-bridge-clients/tree/master/python)\n\n\n### Feature\n\n1. Asynchronous\n2. No dependency\n3. Provides a command line interface\n\n\n### Install \n\n```\npip install vertx-python-client\n```\n\n### Usage \n\n1. use as a command line interface\n\n``` \npython -m vertx localhost 8080\n\nWelcome to the VertX shell. Type help or ? to list commands.\nPress CTRL+C twice to quit\n\n\u003e\u003e {\"type\": \"register\", \"address\": \"app.version\"}\n07/21/20 07:48:00 - INFO: {'type': 'pong'}\n```\n\n2. use as a standard Python library\n\n```python\nfrom vertx import EventBusAsync, EventBusAsync\n\neb = EventBusAsync(host='localhost', port=1234)\neb.connect()\neb.add_listen_func(address=\"api.versions\", action=lambda x: print(x))\n\n# Send a JSON payload\nreg = EventBusAsync(type=\"register\", address=\"api.version\")\neb.send(reg)\npub = EventBusAsync(type=\"publish\", address=\"api.versions.\", replyAddress=\"api.version\")\neb.send(pub)\n\n# Quit the connection\neb.disconnect()\n```\n\n\n\n\n### Test\n\n``` \npytest tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapangmao%2Fvertx-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdapangmao%2Fvertx-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdapangmao%2Fvertx-python-client/lists"}