Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Simple SignalR client for Python

Project Description

Python client proxy for `SignalR <>`_.


Install requirements by running::

pip install -r requirements

Signalr client is based on `gevent` which in turn requires Python headers.
In Debian based distributions (such as Ubuntu and Raspbian) they are called `python-dev`.


Compatible with Python 2 and 3.

Here is sample usage::

from requests import Session
from signalr import Connection

with Session() as session:
#create a connection
connection = Connection("http://localhost:5000/signalr", session)

#get chat hub
chat = connection.register_hub('chat')

#start a connection

#create new chat message handler
def print_received_message(data):
print('received: ', data)

#create new chat topic handler
def print_topic(topic, user):
print('topic: ', topic, user)

#create error handler
def print_error(error):
print('error: ', error)

#receive new chat messages from the hub
chat.client.on('newMessageReceived', print_received_message)

#change chat topic
chat.client.on('topicChanged', print_topic)

#process errors
connection.error += print_error

#start connection, optionally can be connection.start()
with connection:

#post new message
chat.server.invoke('send', 'Python is here')

#change chat topic
chat.server.invoke('setTopic', 'Welcome python!')

#invoke server method that throws error

#post another message
chat.server.invoke('send', 'Bye-bye!')

#wait a second before exit
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
signalr_client-0.0.7-py2-none-any.whl (9.2 kB) Copy SHA256 Checksum SHA256 py2 Wheel Mar 29, 2016
signalr_client-0.0.7-py3-none-any.whl (9.2 kB) Copy SHA256 Checksum SHA256 py3 Wheel Mar 29, 2016 (9.8 kB) Copy SHA256 Checksum SHA256 Source Mar 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting