Skip to main content
signalr-client-threads
=================

Python client proxy for `SignalR <http://signalr.net/>`_.


Requirements
------------

Install requirements by running::

pip install -r requirements


Fork of SignalR client for Python based on threads instead of gevent.


Compatibility
-------------

Compatible with Python 2 and 3.


Usage
-----
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
connection.start()

#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
chat.server.invoke('requestError')

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

#wait a second before exit
connection.wait(1)



Metadata

Release files for signalr-client-threads 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for signalr-client-threads 0.0.8
File Size Uploaded Provenance Actions
signalr-client-threads-0.0.8.tar.gz 5.9 kB Without provenance Details for signalr-client-threads-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for signalr-client-threads 0.0.8
File Interpreter ABI Platform Actions
signalr_client_threads-0.0.8-py2.py3-none-any.whl Python 2, Python 3 none any Details for signalr_client_threads-0.0.8-py2.py3-none-any.whl

Total release size: 15.4 kB

Release files / signalr-client-threads-0.0.8.tar.gz

Download URL signalr-client-threads-0.0.8.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d981890abe7e80f7a5b575b56794d3b49888dfe2848f691a8b21c8fa82718ba9
BLAKE2b-256 checksum
How to use checksums
60c159216d00e8cecfee26ed3d0bc13ece73eacc03d424eccb848a23bef84c47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / signalr_client_threads-0.0.8-py2.py3-none-any.whl

Download URL signalr_client_threads-0.0.8-py2.py3-none-any.whl
Size 9.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1598ad203245d72bea0b6f79d72cf6a1a07de8c7d7dd0215693d892d9c1322ad
BLAKE2b-256 checksum
How to use checksums
b28c7352527bd63fae1fd7bd5420a2055b44807eed4ff5732da450d78b519d97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for signalr-client-threads 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page