A Python library for interacting with Thunderpush server API.
Python
Latest commit 17f7f4d Oct 5, 2015 @kjagiello kjagiello Python 3 support
Failed to load latest commit information.
thunderclient Python 3 support Oct 5, 2015
.gitignore Initial commit Aug 20, 2012
AUTHORS Initial commit Aug 20, 2012
LICENSE Initial commit Aug 20, 2012
MANIFEST.in Initial commit Aug 20, 2012
README.rst Python 3 support Oct 5, 2015
setup.py Python 3 support Oct 5, 2015

README.rst

Thunderpush client for Python

A Python library for sending messages to the Thunderpush server.

Install

pip install thunderclient

Example

from thunderclient import Thunder

c = Thunder('key', 'secretkey', 'localhost', 8080)

print(c.get_user_count())
print(c.get_users_in_channel('test'))
print(c.send_message_to_user('test', {'msg': 'hello!'}))
print(c.send_message_to_channel('test', {'msg': 'hello!'}))
print(c.is_user_online('test'))
print(c.disconnect_user('test'))