{ "info": { "author": "Nimrod A. Abing", "author_email": "nimrod.abing@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "===========\nTornadIO2Go\n===========\n\nTornadIO2Go integrates `TornadIO2`_ with your Django project. It allows you to\nrun both your Django project and TornadIO2 app from within the same `Tornado`_\nserver. Or you can just use it as a production-ready ``runserver`` substitute.\n\nInstallation\n============\n\nThe quickest way to install is via `pip`_ from within a `virtualenv`_.::\n\n pip install https://github.com/rudeb0t/tornadio2go/archive/master.zip#egg=TornadIO2Go\n\nAlternatively, you can opt to use an \"editable\" installation::\n\n pip install -e https://github.com/rudeb0t/tornadio2go.git#egg=TornadIO2Go\n\nQuick Start\n===========\n\nAdd ``tornadio2go`` to your ``INSTALLED_APPS`` and then run ``syncdb``. This\nwill install the models used by TornadIO2Go. Create your\n``tornadio2.SocketConnection`` subclass and write your event handlers as\nusual. Then add the following to your ``settings.py``::\n\n TORNADIO2GO = {\n 'SOCKETCONNECTION_CLASS': 'path.to.socketConnectionClass'\n }\n\nThen from the command line, start the TornadIO2 server::\n\n python manage.py runtornadio2\n\nThis will start the server bound to 127.0.0.1 and listening on port 8000.\n\nDjango Settings\n===============\n\nAll of TornadIO2Go's settings are found in the Django setting ``TORNADIO2GO``.\nThis is a simple Python ``dict``. Available settings, all of them are optional:\n\n* ``SOCKETCONNECTION_CLASS`` - this should be the complete path to the\n ``tornadio2.SocketConnection`` subclass. If this is not specified,\n ``runtornadio2`` will run your Django project in a Tornado web server.\n\n* ``USER_SETTINGS`` - this is a ``dict`` containing options that should be\n when creating a new ``tornadio2.router.TornadioRouter`` instance. This is\n only used if you specify ``SOCKETCONNECTION_CLASS``.\n\n* ``TORNADO_OPTIONS`` - this is a ``dict`` of all the options that you wish to\n use for the ``tornado.httpserver.HTTPServer`` instance that will be created.\n See `HTTPServer`_ documentation.\n\n* ``TORNADO_HANDLERS`` - this is a list of handlers that you want to be added\n before the `FallbackHandler`.\n \nCommand Line Options\n====================\n\nThe ``runtornadio2`` command has similar command line options to Django's\n``runserver`` command. Do:::\n\n python manage.py runtornadio2 --help\n\nTo display a list of available options. Typical usage is:::\n\n python manage.py runtornadio2 [options] [optional port number, or ipaddr:port]\n\nTo run a multi-process server, use the ``--num-process`` option and set it to\neither zero or any number greater than one. Set to zero to automatically\ndetect the number of available CPU cores and fork the appropriate number of\nprocesses. Set to any number greater than one to fork a specific number of\nprocesses.\n\nRunning With supervisord\n========================\n\nIn order to run tornadio2go under `supervisord`_ you must use the `--noreload`\nor `--num-process=1` flag in the command parameter for the ini section of your\nconfiguration file. `supervisord` does not like it when its supervised\nprograms do a `fork()` and the reloader does just that.\n\nSignals\n=======\n\n*Experimental in 1.0.3*\n\nVersion 1.0.3 introduces signals which are sent during different stages of\ninitialization. The list of signals (in the order that they are sent) are as\nfollows:\n\n* `pre_server_start`\n\n* `post_server_start`\n\n* `pre_add_handlers`\n\n* `post_add_handlers`\n\nThe signals handlers will all receive the `tornado.web.Application` object in\nthe `tornado_app` keyword argument. Unless otherwise indicated, the `sender` is\nalways the `tornado.httpserver.HTTPServer` object.\n\nThis feature is currently marked as **EXPERIMENTAL** and might change in future\nversions.\n\n.. _TornadIO2: https://github.com/MrJoes/tornadio2\n.. _Tornado: http://www.tornadoweb.org/\n.. _pip: http://pypi.python.org/pypi/pip\n.. _virtualenv: http://pypi.python.org/pypi/virtualenv\n.. _HTTPServer: http://www.tornadoweb.org/documentation/httpserver.html#http-server\n.. _supervisord: http://supervisord.org/", "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/rudeb0t/tornadio2go", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "TornadIO2Go", "package_url": "https://pypi.org/project/TornadIO2Go/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/TornadIO2Go/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rudeb0t/tornadio2go" }, "release_url": "https://pypi.org/project/TornadIO2Go/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "Seamlessly run your Django and TornadIO2 project inside Tornado. Like.A.Boss.", "version": "1.0.4" }, "last_serial": 1711167, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "63fc2752e7ad1d176d39d97c7af17545", "sha256": "f69964145b40bc2aee1040f9916d9e553b2b71c233ddf61c6d827214ca1d99f1" }, "downloads": -1, "filename": "TornadIO2Go-1.0.0.tar.gz", "has_sig": false, "md5_digest": "63fc2752e7ad1d176d39d97c7af17545", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75236, "upload_time": "2013-04-10T10:54:33", "url": "https://files.pythonhosted.org/packages/a2/ec/55b84fc735e0563e3810698b180b448bab9be95c743e6de4c2c27e7158cf/TornadIO2Go-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "97870410c15cdb056a5d9701df7c92cb", "sha256": "a0fa50120f11cd7f32113290d00193db863df4188a170a5540601ff1e8a7ca88" }, "downloads": -1, "filename": "TornadIO2Go-1.0.1.tar.gz", "has_sig": false, "md5_digest": "97870410c15cdb056a5d9701df7c92cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80092, "upload_time": "2013-04-10T11:06:52", "url": "https://files.pythonhosted.org/packages/f5/32/2b93525ce78b678f378741c215b306c39aee1cde817448f1fbf1b732fe73/TornadIO2Go-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a768a63f5cdd39240528cd220d69ed31", "sha256": "91d7623fcc0c485f97efc6180c4348565969036cdf491344497418dba81bff0e" }, "downloads": -1, "filename": "TornadIO2Go-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a768a63f5cdd39240528cd220d69ed31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 80281, "upload_time": "2013-04-17T14:30:02", "url": "https://files.pythonhosted.org/packages/8b/a7/8622b50e6e21cf95054a16430724363495536fa4e6d4545014c93254d843/TornadIO2Go-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "4a52d68f48ffdc79d5f94f8b2ddcf188", "sha256": "cd4fe009945d10d486a478943055e3e2c99b36cd68e3b492cf025c2616006a36" }, "downloads": -1, "filename": "TornadIO2Go-1.0.3.tar.gz", "has_sig": false, "md5_digest": "4a52d68f48ffdc79d5f94f8b2ddcf188", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81219, "upload_time": "2013-04-30T02:01:45", "url": "https://files.pythonhosted.org/packages/2f/34/fb8e739e14b0a59f8e787932635ec3fa43ba72a17812931f798d6cec01a3/TornadIO2Go-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "7dd89d2e00b4c52f6c3b68705f010adf", "sha256": "5045bd5710fa7d4f20e510b040a985f293efa439e90ad107eee9ebcb982ebf35" }, "downloads": -1, "filename": "TornadIO2Go-1.0.4.tar.gz", "has_sig": false, "md5_digest": "7dd89d2e00b4c52f6c3b68705f010adf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81368, "upload_time": "2015-09-07T06:21:32", "url": "https://files.pythonhosted.org/packages/81/66/b7d84922c5e2577b8545c3a93cdf8d4f87a1ef4a9e95f64bcc29aade160c/TornadIO2Go-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7dd89d2e00b4c52f6c3b68705f010adf", "sha256": "5045bd5710fa7d4f20e510b040a985f293efa439e90ad107eee9ebcb982ebf35" }, "downloads": -1, "filename": "TornadIO2Go-1.0.4.tar.gz", "has_sig": false, "md5_digest": "7dd89d2e00b4c52f6c3b68705f010adf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 81368, "upload_time": "2015-09-07T06:21:32", "url": "https://files.pythonhosted.org/packages/81/66/b7d84922c5e2577b8545c3a93cdf8d4f87a1ef4a9e95f64bcc29aade160c/TornadIO2Go-1.0.4.tar.gz" } ] }