{ "info": { "author": "Ziya SARIKAYA", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "socket.io-python-emitter\n========================\n\n.. image:: https://travis-ci.org/ziyasal/socket.io-python-emitter.svg?branch=master\n :target: https://travis-ci.org/ziyasal/socket.io-python-emitter\n\n.. image:: https://img.shields.io/pypi/v/socket.io-emitter.svg\n :target: https://pypi.org/project/socket.io-emitter/\n\n.. image:: https://codecov.io/gh/ziyasal/socket.io-python-emitter/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/ziyasal/socket.io-python-emitter\n\nA Python implementation of `socket.io-emitter `_.\n\n`socket.io `_ provides a hook point to easily allow you to emit events to browsers from anywhere so `socket.io-python-emitter` communicates with `socket.io `_ servers through redis.\n\nWe made some changes, compatible socket.io-redis 0.2.0 and socket.io 0.1.4.\n\nHow to use\n----------\n\n**Install via pip**\n\n pip install socket.io-emitter\n\n.. code-block:: python\n\n from socket_io_emitter import Emitter\n\n io=Emitter({'host': 'localhost', 'port':6379})\n io.Emit('broadcast event','Hello from socket.io-python-emitter')\n\nAPI\n---\n\nEmitter(opts)\n-------------\n\nThe following options are allowed:\n\n- `client`: is a `redis-py `_ compatible client\n This argument is optional.\n- `key`: the name of the key to pub/sub events on as prefix (`socket.io`)\n- `host`: host to connect to redis on (`localhost`)\n- `port`: port to connect to redis on (`6379`)\n\nIf you don't want to supply a redis client object, and want\n`socket.io-python-emitter` to initialize one for you, make sure to supply the\n`host` and `port` options.\n\nSpecifies a specific `room` that you want to emit to.\n\nEmitter#In(room):Emitter\n------------------------\n\n.. code-block:: python\n\n io=Emitter({'host': 'localhost', 'port':6379})\n io.In(\"room-name\").Emit(\"news\",\"Hello from python emitter\");\n\nEmitter#To(room):Emitter\n------------------------\n\n.. code-block:: python\n\n io=Emitter({'host': 'localhost', 'port':6379})\n\n io.To(\"room-name\").Emit(\"news\",\"Hello from python emitter\");\n\nWe are flattening the room parameter from `[]` and `*argv`, so you can also send to several rooms like this (both examples are valid).\n\n.. code-block:: python\n\n io=Emitter({'host': 'localhost', 'port':6379})\n\n io.To([\"room1\", \"room2\"]).Emit(\"news\",\"Hello from python emitter\");\n io.To(\"room1\", \"room2\").Emit(\"news\",\"Hello from python emitter\");\n\nEmitter#Of(namespace):Emitter\n-----------------------------\n\nSpecifies a specific namespace that you want to emit to.\n\n.. code-block:: python\n\n io=Emitter({'host': 'localhost', 'port':6379})\n\n io.Of(\"/nsp\").In(\"room-name\").Emit(\"news\",\"Hello from python emitter\");\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2014 Ziya SARIKAYA\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nOpen Source Projects in Use\n---------------------------\n\n* `redis-py `_ by Andy McCurdy @andymccurdy\n* `msgpack-python `_ by MessagePack\n\n@zi\u03bbasal & @abdullahselek\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://pypi.org/project/socket.io-emitter/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ziyasal/socket.io-python-emitter", "keywords": "socket.io,emitter,pure python module,universal module", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "socket.io-emitter", "package_url": "https://pypi.org/project/socket.io-emitter/", "platform": "Any", "project_url": "https://pypi.org/project/socket.io-emitter/", "project_urls": { "Download": "https://pypi.org/project/socket.io-emitter/", "Homepage": "https://github.com/ziyasal/socket.io-python-emitter" }, "release_url": "https://pypi.org/project/socket.io-emitter/0.1.5.1/", "requires_dist": [ "msgpack-python", "redis" ], "requires_python": "", "summary": "Python implementation of socket.io-emitter.", "version": "0.1.5.1" }, "last_serial": 3904872, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f50903915c6e5c76b934ff581f0c5156", "sha256": "6bd90fe78299410ac430cf922981595ca8a4a003ffba37d321244adc1d459fe9" }, "downloads": -1, "filename": "socket.io-emitter-0.1.0.tar.gz", "has_sig": false, "md5_digest": "f50903915c6e5c76b934ff581f0c5156", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2208, "upload_time": "2014-06-05T19:42:24", "url": "https://files.pythonhosted.org/packages/68/3c/19c5bf23421b2af6967b467b6b940baacacd81c248b9dca3e3e22b3dbd98/socket.io-emitter-0.1.0.tar.gz" } ], "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "40082cc5c6c1e08ccd57260b0dd327f6", "sha256": "6e95906ecbc10d4948ebd4f019402cc5ea380b5f8ef87a71e4e480eadd7d8763" }, "downloads": -1, "filename": "socket.io-emitter-0.1.2.tar.gz", "has_sig": false, "md5_digest": "40082cc5c6c1e08ccd57260b0dd327f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2284, "upload_time": "2014-08-21T14:41:36", "url": "https://files.pythonhosted.org/packages/6a/c8/facadf9fb5d3066af688ab859172fcd6abdb01147b05231e407d0eb43113/socket.io-emitter-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "8e76a24b7ab5b15e45cc082dc64aedfe", "sha256": "425ca8db1e9e35d4de336d10af55b645a52976bb32934af98b49ca8c46617dd5" }, "downloads": -1, "filename": "socket.io-emitter-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8e76a24b7ab5b15e45cc082dc64aedfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2274, "upload_time": "2014-09-06T20:26:04", "url": "https://files.pythonhosted.org/packages/88/92/aab5a17e34f37d59e6de35f8cf2c145f2689665a122b5f0ab0601011932f/socket.io-emitter-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "ad500475ff3fb1f518a9c57edb9070e8", "sha256": "b5d89837843058c3ac78b02efdf25232e6a5e7f2c7808734f3a672feb1adbd34" }, "downloads": -1, "filename": "socket.io_emitter-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ad500475ff3fb1f518a9c57edb9070e8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3139, "upload_time": "2018-03-21T11:20:03", "url": "https://files.pythonhosted.org/packages/c9/8d/4fdc0855b4841563994023f5a6995734a7ba6ae0dca916110182dafe426c/socket.io_emitter-0.1.4-py2.py3-none-any.whl" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "a06ddd9eb1dc650a773d29eb9d9af829", "sha256": "6c370362dd3598ca4968d82aaa7c8df397870bdc80061519d92b52af355d05dd" }, "downloads": -1, "filename": "socket.io_emitter-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a06ddd9eb1dc650a773d29eb9d9af829", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4300, "upload_time": "2018-05-05T10:28:38", "url": "https://files.pythonhosted.org/packages/0c/b4/76337df7b09badc05eb7bc6616a3e1e6dfaeae37c21a1041555fb20595df/socket.io_emitter-0.1.5-py2.py3-none-any.whl" } ], "0.1.5.1": [ { "comment_text": "", "digests": { "md5": "f2310f6d301187fa9fa85015c1bde845", "sha256": "e2c245195a100db79edc5bacbab5ba261c1a449ec5d1849296f93d48690f3028" }, "downloads": -1, "filename": "socket.io_emitter-0.1.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2310f6d301187fa9fa85015c1bde845", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6077, "upload_time": "2018-05-27T18:49:48", "url": "https://files.pythonhosted.org/packages/7c/e7/c432970aaaf85158f39e013afec587031bae1ee8de2ced7e4bbf779ee610/socket.io_emitter-0.1.5.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2310f6d301187fa9fa85015c1bde845", "sha256": "e2c245195a100db79edc5bacbab5ba261c1a449ec5d1849296f93d48690f3028" }, "downloads": -1, "filename": "socket.io_emitter-0.1.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f2310f6d301187fa9fa85015c1bde845", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6077, "upload_time": "2018-05-27T18:49:48", "url": "https://files.pythonhosted.org/packages/7c/e7/c432970aaaf85158f39e013afec587031bae1ee8de2ced7e4bbf779ee610/socket.io_emitter-0.1.5.1-py2.py3-none-any.whl" } ] }