{"id":13679823,"url":"https://github.com/open-wa/wa-automate-socket-client-python","last_synced_at":"2025-12-30T00:52:22.765Z","repository":{"id":45286100,"uuid":"470648840","full_name":"open-wa/wa-automate-socket-client-python","owner":"open-wa","description":"🔌 🛠 The wa-automate socket client allows you to easily connect to remote EASY API instances. Be sure to 🌟 this repository for updates!","archived":false,"fork":false,"pushed_at":"2022-12-13T17:06:17.000Z","size":16,"stargazers_count":92,"open_issues_count":3,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-11T22:35:38.590Z","etag":null,"topics":["open-wa","python","socket-io","whatsapp-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-wa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-16T15:46:23.000Z","updated_at":"2024-11-06T00:12:54.000Z","dependencies_parsed_at":"2023-01-28T13:26:28.004Z","dependency_job_id":null,"html_url":"https://github.com/open-wa/wa-automate-socket-client-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-wa%2Fwa-automate-socket-client-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-wa","download_url":"https://codeload.github.com/open-wa/wa-automate-socket-client-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251569549,"owners_count":21610575,"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":["open-wa","python","socket-io","whatsapp-api"],"created_at":"2024-08-02T13:01:09.981Z","updated_at":"2025-12-30T00:52:22.716Z","avatar_url":"https://github.com/open-wa.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Remote Socket Client\n\n## How to:\n\n1. Run the EASY API. Note: `--socket` flag is required!!\n\n```bash\n\u003e npx @open-wa/wa-automate --socket -p 8085 -k secure_api_key\n\n# OR use docker\n\n\u003e docker run openwa/wa-automate --socket -p 8085 -k secure_api_key\n```\n\n2. Install \n\n```bash\n\u003e pip install wa-automate-socket-client\n```\n\n3. Sample code:\n\n```python\nfrom wa_automate_socket_client import SocketClient\n\nNUMBER = 'TEST_PHONE_NUMBER@c.us'\n\nclient = SocketClient('http://localhost:8085/', 'secure_api_key')\n\n\ndef printResponse(message):\n    print(message)\n\n\n# Listening for events\nclient.onMessage(printResponse)\n\n# Executing commands\nclient.sendText(NUMBER, \"this is a text\")\n\n# Sync/Async support\nprint(client.getHostNumber())  # Sync request\nclient.sendAudio(NUMBER,\n                 \"https://download.samplelib.com/mp3/sample-3s.mp3\",\n                 sync=False,\n                 callback=printResponse)  # Async request. Callback is optional\n\n# Finally disconnect\nclient.disconnect()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-wa%2Fwa-automate-socket-client-python/lists"}