Catalog PyPI
PACKAGE EXPLORERView in registry

actioncable-client

PyPI

ActionCable Client for Python 3

Versions collected1
Direct dependencies0From release 0.3.0
Last observed20 Oct, 18:32 UTC

README

Version 0.3.0 documentation

ActionCable Client - A Python 3 client for Rails' Action Cable

pipeline status coverage report Latest Release

This library handles the connections and subscriptions and monitors the connection. It removes the underlaying websocket layer.

Currently authentication is not managed by this library.

Credits

The project originate this that was stalled for more than 5 years.

ROADMAP

See Roadmap file

Get started

sudo pip3 install actioncable_client

Example usage

Setup the connection

Setup the connection to your Action Cable server.

from actioncable.connection import Connection

connection = Connection(url='wss://url_to_your_cable_server/cable', origin='https://url_to_your_cable_server')
connection.connect()

Subscribe to a channel

from actioncable.subscription import Subscription

subscription = Subscription(connection, identifier={'channel': 'YourChannelCLassName'})

def on_receive(message: dict):
  print('New message arrived!')
  print('Action: {} | Data: {}'.format(message['action'], message['data']))

subscription.on_receive(callback=on_receive)
subscription.create()

Send data

from actioncable.message import Message

message = Message(action='update_something', data={'something': 'important'})

subscription.send(message)

Unsubscribe

subscription.remove()

Close connection

connection.disconnect()

Development

Pull it up!

You need help?

Ask a question on StackOverflow with the tag 'actioncable-client'.

Contribution

Create pull requests on GitLab and help us to improve this package. There are some guidelines to follow:

  • Follow the conventions
  • Test all your implementations
  • Document methods which aren't self-explaining
  • try to follow the Roadmap

Copyright (c) 2024 Liant SASU, MIT license

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.08 Aug 20240

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
liant-sasu/actioncable-client

Shared repository data · GitLab

License detected in repository
MIT License
License branch / ref
main
Contributor identities
7 · complete API traversal
License file
Contributors · showing 7 of 7 collected
ContributorContributions
Tobias Feistmantl26
Roland Laurès8
Peter Spiess-Knafl1
Lionel Nicolas1
Brandon Sturgeon1
Parth Joshi1
Olivier Macchioni1

Default-branch author identities; GitLab commit counts exclude merge commits.

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

7identities
Gauge · observed snapshots22 Oct 2026
73.50
2026-10-20: 7 · observed 2026-10-20T19:18:35.7488312Z2026-10-21: 7 · observed 2026-10-21T19:18:55.7454961Z2026-10-22: 7 · observed 2026-10-22T19:19:21.8253766Z
20 Oct22 Oct

gitlab · 3 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2272026-10-22T19:19:21.8253766Z
2026-10-2172026-10-21T19:18:55.7454961Z
2026-10-2072026-10-20T19:18:35.7488312Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:de06fbcc67a02c0e4496791cb732c249235893bb9c451f931ff05afb071f4218