asyncore-wsgi


Nameasyncore-wsgi JSON
Version 0.0.11 PyPI version JSON
download
home_pagehttps://github.com/romanvm/asyncore-wsgi
SummaryAsynchronous WSGI and WebSocket server based on asyncore module
upload_time2023-07-05 20:43:39
maintainer
docs_urlNone
authorRoman Miroshnychenko
requires_python>=3.6
licenseMIT
keywords wsgi web server
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            asyncore-wsgi
=============

This is a single-threaded asynchronous WSGI server with WebSockets support
based on `asyncore <https://docs.python.org/3.6/library/asyncore.html>`_ module.
It should be compatible with Python 2.7 and 3.

Example:

.. code-block:: python

    from from wsgiref.simple_server import demo_app
    from asyncore_wsgi import AsyncWebSocketHandler, make_server


    class SimpleEchoHandler(AsyncWebSocketHandler):

        def handleMessage(self):
            print('Received WebSocket message: {}'.format(self.data))
            self.sendMessage(self.data)

        def handleConnected(self):
            print('WebSocket connected')

        def handleClose(self):
            print('WebSocket closed')


    httpd = make_server('', 8000, demo_app, ws_handler_class=SimpleEchoHandler)
    httpd.serve_forever()

The server in the preceding example serves a demo WSGI app from
the Standard Library and the echo WebSocket handler on ``'/ws'`` path.

WebSocket part was borrowed from
`this project <https://github.com/dpallot/simple-websocket-server>`_.

License
-------

MIT, see LICENSE.txt

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/romanvm/asyncore-wsgi",
    "name": "asyncore-wsgi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "wsgi web server",
    "author": "Roman Miroshnychenko",
    "author_email": "roman1972@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ba/ee/e89c43a89ca46fb71875a9ecc854e52d8767696489bce2cf7beade376c07/asyncore-wsgi-0.0.11.tar.gz",
    "platform": "any",
    "description": "asyncore-wsgi\n=============\n\nThis is a single-threaded asynchronous WSGI server with WebSockets support\nbased on `asyncore <https://docs.python.org/3.6/library/asyncore.html>`_ module.\nIt should be compatible with Python 2.7 and 3.\n\nExample:\n\n.. code-block:: python\n\n    from from wsgiref.simple_server import demo_app\n    from asyncore_wsgi import AsyncWebSocketHandler, make_server\n\n\n    class SimpleEchoHandler(AsyncWebSocketHandler):\n\n        def handleMessage(self):\n            print('Received WebSocket message: {}'.format(self.data))\n            self.sendMessage(self.data)\n\n        def handleConnected(self):\n            print('WebSocket connected')\n\n        def handleClose(self):\n            print('WebSocket closed')\n\n\n    httpd = make_server('', 8000, demo_app, ws_handler_class=SimpleEchoHandler)\n    httpd.serve_forever()\n\nThe server in the preceding example serves a demo WSGI app from\nthe Standard Library and the echo WebSocket handler on ``'/ws'`` path.\n\nWebSocket part was borrowed from\n`this project <https://github.com/dpallot/simple-websocket-server>`_.\n\nLicense\n-------\n\nMIT, see LICENSE.txt\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Asynchronous WSGI and WebSocket server based on asyncore module",
    "version": "0.0.11",
    "project_urls": {
        "Homepage": "https://github.com/romanvm/asyncore-wsgi"
    },
    "split_keywords": [
        "wsgi",
        "web",
        "server"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8283ac56a2f11d43a20d78eddd0bf77138dd2a14279151ee3da6c84677ed9e0d",
                "md5": "b6b72d675df9579ca494da87d8667928",
                "sha256": "16cc499992d23adf3ad27f5e9a226c3212e78490aab6ea92d9167f2f1acbd6f1"
            },
            "downloads": -1,
            "filename": "asyncore_wsgi-0.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b6b72d675df9579ca494da87d8667928",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 16859,
            "upload_time": "2023-07-05T20:43:38",
            "upload_time_iso_8601": "2023-07-05T20:43:38.214280Z",
            "url": "https://files.pythonhosted.org/packages/82/83/ac56a2f11d43a20d78eddd0bf77138dd2a14279151ee3da6c84677ed9e0d/asyncore_wsgi-0.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "baeee89c43a89ca46fb71875a9ecc854e52d8767696489bce2cf7beade376c07",
                "md5": "be552f7fceb60759e7d43126924b1723",
                "sha256": "5a8f999715ac4222c7a3d4cfa427535ac2dc9adf7e18d1c7e511924864133e16"
            },
            "downloads": -1,
            "filename": "asyncore-wsgi-0.0.11.tar.gz",
            "has_sig": false,
            "md5_digest": "be552f7fceb60759e7d43126924b1723",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 15876,
            "upload_time": "2023-07-05T20:43:39",
            "upload_time_iso_8601": "2023-07-05T20:43:39.842273Z",
            "url": "https://files.pythonhosted.org/packages/ba/ee/e89c43a89ca46fb71875a9ecc854e52d8767696489bce2cf7beade376c07/asyncore-wsgi-0.0.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-05 20:43:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "romanvm",
    "github_project": "asyncore-wsgi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "asyncore-wsgi"
}
        
Elapsed time: 0.50511s