{"id":14955930,"url":"https://github.com/0x7466/python-actioncable-zwei","last_synced_at":"2026-01-03T03:13:43.941Z","repository":{"id":55400151,"uuid":"87003672","full_name":"0x7466/python-actioncable-zwei","owner":"0x7466","description":"Action Cable Client for Python 3","archived":false,"fork":false,"pushed_at":"2024-05-10T11:04:58.000Z","size":23,"stargazers_count":15,"open_issues_count":1,"forks_count":14,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T02:35:20.643Z","etag":null,"topics":["actioncable","client-side","python3","rails","real-time","websocket"],"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/0x7466.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-02T17:39:55.000Z","updated_at":"2024-05-10T11:05:02.000Z","dependencies_parsed_at":"2024-05-10T12:26:09.333Z","dependency_job_id":"4bf208af-e823-4b75-9e63-a3a2f17d7f4b","html_url":"https://github.com/0x7466/python-actioncable-zwei","commit_stats":{"total_commits":30,"total_committers":5,"mean_commits":6.0,"dds":0.1333333333333333,"last_synced_commit":"c7b74f0b0472db1ee8b3fec19cbd64505fd3d413"},"previous_names":["tobiasfeistmantl/python-actioncable-zwei"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x7466%2Fpython-actioncable-zwei","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x7466%2Fpython-actioncable-zwei/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x7466%2Fpython-actioncable-zwei/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x7466%2Fpython-actioncable-zwei/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x7466","download_url":"https://codeload.github.com/0x7466/python-actioncable-zwei/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237944035,"owners_count":19391588,"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":["actioncable","client-side","python3","rails","real-time","websocket"],"created_at":"2024-09-24T13:12:01.943Z","updated_at":"2025-10-24T09:30:23.139Z","avatar_url":"https://github.com/0x7466.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ActionCableZwei - A Python 3 client for Rails' Action Cable\n\nThis library handles the connections and subscriptions and monitors the connection. It removes the underlaying websocket layer.\n\n## Get started\n\n```\n$ sudo pip3 install ActionCableZwei\n```\n\n## Example usage\n\n### Setup the connection\nSetup the connection to your Action Cable server.\n\n```python\nfrom actioncable.connection import Connection\n\nconnection = Connection(url='wss://url_to_your_cable_server/cable', origin='https://url_to_your_cable_server')\nconnection.connect()\n```\n\n### Subscribe to a channel\n\n```python\nfrom actioncable.subscription import Subscription\n\nsubscription = Subscription(connection, identifier={'identifier': 'AppChannel'})\n\ndef on_receive(message):\n  print('New message arrived!')\n  print('Action: {} | Data: {}'.format(message.action, message.data))\n\nsubscription.on_receive(callback=on_receive)\nsubscription.create()\n```\n\n### Send data\n\n```python\nfrom actioncable.message import Message\n\nmessage = Message(action='update_something', data={'something': 'important'})\n\nsubscription.send(message)\n```\n\n### Unsubscribe\n\n```python\nsubscription.remove()\n```\n\n### Close connection\n\n```python\nconnection.disconnect()\n```\n\n## Development\n\nPull it up!\n\n## You need help?\n\nAsk a question on [StackOverflow](https://stackoverflow.com/) with the tag 'actioncable-zwei'.\n\n## Things to do\n\n * **To test the package.**\n\nAlso here we would be thankful for pull requests.\n\n## Contribution\n\nCreate pull requests on Github and help us to improve this gem. There are some guidelines to follow:\n\n * Follow the conventions\n * Test all your implementations\n * Document methods which aren't self-explaining\n\nCopyright (c) 2017 Tobias Feistmantl, MIT license\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x7466%2Fpython-actioncable-zwei","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x7466%2Fpython-actioncable-zwei","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x7466%2Fpython-actioncable-zwei/lists"}