{ "info": { "author": "Amirouche Boubekki", "author_email": "amirouche.boubekki@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python :: 2.7" ], "description": "Django SocketIO Alternative\n===========================\n\nAlternative Django support for Gevent SocketIO, this is based on \n`mrjmad example project `_.\n\nWhat is it useful for\n---------------------\n\nSocketIO is an abstraction layer over several methods to maintain a connection\nbetween the client and the server otherwise said long-polling this includes\n`websockets `_.\n\nCheckout `what are websockets? `_.\n\nDocumentation\n-------------\n\nAdd ``djsocketio`` to your ``INSTALLED_APPS`` in ``settings.py``\n\nCreate a ``live.py`` in an application of your project. django-socketio-alt\nwill discover every ``live.py`` that are in applications installed against\nDjango, so becarful with what you do install in production. ``live.py`` can \nstart like this::\n\n\n from socketio.namespace import BaseNamespace\n from socketio.mixins import RoomsMixin, BroadcastMixin\n\n\n class Namespace(BaseNamespace, RoomsMixin, BroadcastMixin):\n\n def emit_to_me(self, event, *args):\n pkt = dict(\n type=\"event\",\n name=event,\n args=args,\n endpoint=self.ns_name)\n self.socket.send_packet(pkt)\n\nYou can specify a namespace name using the ``name`` property like so::\n\n class Namespace(BaseNamespace, RoomsMixin, BroadcastMixin):\n\n name = 'chat'\n\nIf you do not, the default is to use the name of the app, for instance if the \napp is registred as ``spam.egg.chat``, the namespace's name will be ``chat``.\nConnection to this namespace in the client will be done using the following \ncode::\n\n var socket = io.connect('http://localhost:8000/chat');\n\nNow everything you need to know is in \n`Gevent SocketIO documentation `_ \nand for some copy-paste goodness you can have a look at the example application\nin `example directory `_.\n\nHappy living!\n\n\nHow to run the example application\n----------------------------------\n\nTo run the example app you will need to install ``gevent-socketio``,\nif you did not ``pip install django-socketio-alt`` already::\n\n $> pip install gevent-socketio\n\nSince the default port for doing websocket is ``8000`` and the example\napp use this default you need to run the django project on another port::\n\n $> ./manage.py 0.0.0.0:8001\n\nThen run the SocketIO thread with the following command::\n\n $> ./manage.py runserver_socketio\n\nOpen two `http://0.0.0.0:8001/ `_ windows\nand start the conversation.\n\n\nLinks\n-----\n\n- `forge `_\n- `SocketIO `_\n- `Gevent SocketIO `_\n\n\nAuthors\n-------\n\n- `Mrjmad `_\n- `Amirouche `_", "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/amirouche/django-socketio-alt", "keywords": null, "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "django-socketio-alt", "package_url": "https://pypi.org/project/django-socketio-alt/", "platform": "any", "project_url": "https://pypi.org/project/django-socketio-alt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/amirouche/django-socketio-alt" }, "release_url": "https://pypi.org/project/django-socketio-alt/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "Django + Gevent + SocketIO = Awesome client/server interactions", "version": "0.2.1" }, "last_serial": 790701, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "108c5856f3570a9bf970a94034e441ff", "sha256": "450cac7e9f86b962d1df4e39847c6b92ab4411274528e90d836299d33ca79449" }, "downloads": -1, "filename": "django-socketio-alt-0.1.tar.gz", "has_sig": false, "md5_digest": "108c5856f3570a9bf970a94034e441ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2399, "upload_time": "2012-10-20T14:24:56", "url": "https://files.pythonhosted.org/packages/eb/d5/89e9346f093893494ba711174d682296726ab5ddf28c4f73ade175b3702a/django-socketio-alt-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1a4dcee900269702c6723e68788388af", "sha256": "a797350b661af21eb0211ffb4c4b5cbc81c36ade6e605ec345839586d13a5e97" }, "downloads": -1, "filename": "django-socketio-alt-0.2.tar.gz", "has_sig": false, "md5_digest": "1a4dcee900269702c6723e68788388af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2410, "upload_time": "2012-10-20T22:51:11", "url": "https://files.pythonhosted.org/packages/05/39/ace765a1127e648c240fc4579cd43c98c7db5d8c0d57c6ef02cf65c6780d/django-socketio-alt-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "745d0500e08b7e9b3a8b367a98c1e018", "sha256": "06f5b10f3782411f1a19f113f59fb520246ed5d68b90e0a1f4c68041d912be48" }, "downloads": -1, "filename": "django-socketio-alt-0.2.1.tar.gz", "has_sig": false, "md5_digest": "745d0500e08b7e9b3a8b367a98c1e018", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3591, "upload_time": "2012-10-25T15:00:28", "url": "https://files.pythonhosted.org/packages/3c/8e/3bcc3060e70feaf2969d28ee2baa09fe5a1c28cea327a724ac86142ff0be/django-socketio-alt-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "745d0500e08b7e9b3a8b367a98c1e018", "sha256": "06f5b10f3782411f1a19f113f59fb520246ed5d68b90e0a1f4c68041d912be48" }, "downloads": -1, "filename": "django-socketio-alt-0.2.1.tar.gz", "has_sig": false, "md5_digest": "745d0500e08b7e9b3a8b367a98c1e018", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3591, "upload_time": "2012-10-25T15:00:28", "url": "https://files.pythonhosted.org/packages/3c/8e/3bcc3060e70feaf2969d28ee2baa09fe5a1c28cea327a724ac86142ff0be/django-socketio-alt-0.2.1.tar.gz" } ] }