{ "info": { "author": "Erik Kulyk", "author_email": "e.kulyk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "[![Build Status](https://travis-ci.org/ekulyk/PythonPusherClient.svg?branch=master)](https://travis-ci.org/ekulyk/PythonPusherClient)\n\npusherclient\n=============\n\npusherclient is a python module for handling pusher websockets\n\nInstallation\n------------\n\nSimply run \"python setup.py install\".\n\nThis module depends on websocket-client module available from: \n\nExample\n-------\n\nExample of using this pusher client to consume websockets::\n\n import pusherclient\n\n # Add a logging handler so we can see the raw communication data\n import logging\n root = logging.getLogger()\n root.setLevel(logging.INFO)\n ch = logging.StreamHandler(sys.stdout)\n root.addHandler(ch)\n\n global pusher\n\n # We can't subscribe until we've connected, so we use a callback handler\n # to subscribe when able\n def connect_handler(data):\n channel = pusher.subscribe('mychannel')\n channel.bind('myevent', callback)\n\n pusher = pusherclient.Pusher(appkey)\n pusher.connection.bind('pusher:connection_established', connect_handler)\n pusher.connect()\n\n while True:\n # Do other things in the meantime here...\n time.sleep(1)\n\nSending pusher events to a channel can be done simply using the pusher client supplied by pusher. You can get it here: \n\n import pusher\n pusher.app_id = app_id\n pusher.key = appkey\n\n p = pusher.Pusher()\n p['mychannel'].trigger('myevent', 'mydata')\n\nThanks\n------\n\nBuilt using the websocket-client module from .\nThe ruby gem by Logan Koester which provides a similar service was also very helpful for a reference. Take a look at it here: .\n\nCopyright\n---------\n\nMTI License - See LICENSE for details.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ekulyk/PythonPusherClient", "keywords": "pusher websocket client", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pusherclient", "package_url": "https://pypi.org/project/pusherclient/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pusherclient/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ekulyk/PythonPusherClient" }, "release_url": "https://pypi.org/project/pusherclient/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Pusher websocket client for python", "version": "0.3.0" }, "last_serial": 1342584, "releases": { "0.3.0": [ { "comment_text": "", "digests": { "md5": "516219a01d3d51a7f37991a6135930b3", "sha256": "6a23f2c9255c31301d21728743fc3661e078faed8a6e4206e8774739917de33c" }, "downloads": -1, "filename": "pusherclient-0.3.0.tar.gz", "has_sig": false, "md5_digest": "516219a01d3d51a7f37991a6135930b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6320, "upload_time": "2014-12-13T20:29:28", "url": "https://files.pythonhosted.org/packages/02/e1/0b7e6d15d0b4b905f0d8db152e4cb3f900f509b63fdac6a898f3df8e139c/pusherclient-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "516219a01d3d51a7f37991a6135930b3", "sha256": "6a23f2c9255c31301d21728743fc3661e078faed8a6e4206e8774739917de33c" }, "downloads": -1, "filename": "pusherclient-0.3.0.tar.gz", "has_sig": false, "md5_digest": "516219a01d3d51a7f37991a6135930b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6320, "upload_time": "2014-12-13T20:29:28", "url": "https://files.pythonhosted.org/packages/02/e1/0b7e6d15d0b4b905f0d8db152e4cb3f900f509b63fdac6a898f3df8e139c/pusherclient-0.3.0.tar.gz" } ] }