{ "info": { "author": "Damon Chen", "author_email": "netubu@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Flask-WebSocket\n\n\ncopyright: (c) 2017 by Damon Chen.\nlicense: BSD, see LICENSE for more details.\n\nsimple websocket for Flask\n\n## Install\n\npip install flask-websocket\n\n\n## Usage\n\nyou must define message with the follow message if you use on decorator:\n\n```\n{\n \"event\": event for listen\n \"data\": the event happend with dtaa\n}\n```\n\n\n\n```python\n\nfrom flask import Flask\nfrom flask_websocket import WebSocket\n\napp = Flask(__name__)\nws = WebSocket(app)\n\n@ws.on('click')\ndef click(data):\n print(data)\n\n\n```\n\n\nor you could process raw message by yourself.\n\n\n```python\nfrom flask import Flask\nfrom flask_websocket import WebSocket\n\napp = Flask(__name__)\nws = WebSocket(app)\n\n\n@ws.on_raw_message\ndef raw_message_handler(message):\n print(message)\n\n\n```", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/damonchen/flask-websocket/", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Flask-WebSocket", "package_url": "https://pypi.org/project/Flask-WebSocket/", "platform": "any", "project_url": "https://pypi.org/project/Flask-WebSocket/", "project_urls": { "Homepage": "http://github.com/damonchen/flask-websocket/" }, "release_url": "https://pypi.org/project/Flask-WebSocket/1.0/", "requires_dist": null, "requires_python": null, "summary": "simple websocket for Flask", "version": "1.0" }, "last_serial": 2557116, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "801ddc5ae3c9d78a8db6305d669f3747", "sha256": "8433e5384931565dca8bf812782237243291adcdc6244bd992a8876d2ce668c2" }, "downloads": -1, "filename": "Flask_WebSocket-0.1-py2.7.egg", "has_sig": false, "md5_digest": "801ddc5ae3c9d78a8db6305d669f3747", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3728, "upload_time": "2017-01-06T05:18:02", "url": "https://files.pythonhosted.org/packages/f5/3e/3a81658b0884c92e3e1cb8f8c7bfc5c2928f877b47b4b5534ecf2485d873/Flask_WebSocket-0.1-py2.7.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "801ddc5ae3c9d78a8db6305d669f3747", "sha256": "8433e5384931565dca8bf812782237243291adcdc6244bd992a8876d2ce668c2" }, "downloads": -1, "filename": "Flask_WebSocket-0.1-py2.7.egg", "has_sig": false, "md5_digest": "801ddc5ae3c9d78a8db6305d669f3747", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 3728, "upload_time": "2017-01-06T05:18:02", "url": "https://files.pythonhosted.org/packages/f5/3e/3a81658b0884c92e3e1cb8f8c7bfc5c2928f877b47b4b5534ecf2485d873/Flask_WebSocket-0.1-py2.7.egg" } ] }