WSGIserver


NameWSGIserver JSON
Version 1.3 PyPI version JSON
download
home_pagehttp://fgallaire.github.io/wsgiserver
SummaryA high-speed, production ready, thread pooled, generic WSGI server with SSL support
upload_time2016-09-29 02:32:41
maintainerNone
docs_urlNone
authorFlorent Gallaire
requires_pythonNone
licenseGNU LGPLv3+
keywords wsgi server
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            WSGIserver
==========

**WSGIserver** is a high-speed, production ready, thread pooled, generic WSGI server with **SSL support**.

WSGIserver suppport **both** Python 2 (2.6 and above) and Python 3 (3.1 and above) and has **no dependency**.

WSGIserver is developed by Florent Gallaire fgallaire@gmail.com.

Website: http://fgallaire.github.io/wsgiserver.

Download and Install
--------------------

To install the last stable version from PyPI::

    $ sudo pip install wsgiserver

To install the development version from GitHub::

    $ git clone https://github.com/fgallaire/wsgiserver
    $ cd wsgiserver
    $ sudo python setup.py install

Or you can just use the ``wsgiserver.py`` file alone, nothing more needed!

Usage
-----

Simplest example on how to use WSGIserver::

    import wsgiserver

    def my_app(environ, start_response):
        status = '200 OK'
        response_headers = [('Content-type','text/plain')]
        start_response(status, response_headers)
        return ['WSGIserver is running!']

    server = wsgiserver.WSGIServer(my_app)
    server.start()

Then point your browser to this URL: ``http://localhost:8080``

WSGIserver can serve as many WSGI applications as you want in one
instance by using a ``WSGIPathInfoDispatcher``::

    d = wsgiserver.WSGIPathInfoDispatcher({'/': my_app, '/blog': my_blog_app})
    server = wsgiserver.WSGIServer(d)

To specify an ``host`` or a ``port``::

    server = wsgiserver.WSGIServer(my_app, host='0.0.0.0', port=8080)

To add SSL support, just specify a ``certfile`` and a ``keyfile``::

    server = wsgiserver.WSGIServer(my_app, certfile='cert.pem', keyfile='privkey.pem')

Naming
------

-  *WSGIserver* is the project name

-  *wsgiserver* is the Python module name

-  *WSGIServer* is the main class name

License
-------

WSGIserver files are released under the GNU LGPLv3 or above license.

WSGIserver codebase from CherryPy by CherryPy Team (team@cherrypy.org) under the 3-clause BSD license.

            

Raw data

            {
    "_id": null,
    "home_page": "http://fgallaire.github.io/wsgiserver",
    "name": "WSGIserver",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "wsgi server",
    "author": "Florent Gallaire",
    "author_email": "fgallaire@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b8/76/adaa6544746bd11c6bab6c9b4be0a40054835ef1c92c4487c28c7509ddc0/WSGIserver-1.3.tar.gz",
    "platform": "UNKNOWN",
    "description": "WSGIserver\n==========\n\n**WSGIserver** is a high-speed, production ready, thread pooled, generic WSGI server with **SSL support**.\n\nWSGIserver suppport **both** Python 2 (2.6 and above) and Python 3 (3.1 and above) and has **no dependency**.\n\nWSGIserver is developed by Florent Gallaire fgallaire@gmail.com.\n\nWebsite: http://fgallaire.github.io/wsgiserver.\n\nDownload and Install\n--------------------\n\nTo install the last stable version from PyPI::\n\n    $ sudo pip install wsgiserver\n\nTo install the development version from GitHub::\n\n    $ git clone https://github.com/fgallaire/wsgiserver\n    $ cd wsgiserver\n    $ sudo python setup.py install\n\nOr you can just use the ``wsgiserver.py`` file alone, nothing more needed!\n\nUsage\n-----\n\nSimplest example on how to use WSGIserver::\n\n    import wsgiserver\n\n    def my_app(environ, start_response):\n        status = '200 OK'\n        response_headers = [('Content-type','text/plain')]\n        start_response(status, response_headers)\n        return ['WSGIserver is running!']\n\n    server = wsgiserver.WSGIServer(my_app)\n    server.start()\n\nThen point your browser to this URL: ``http://localhost:8080``\n\nWSGIserver can serve as many WSGI applications as you want in one\ninstance by using a ``WSGIPathInfoDispatcher``::\n\n    d = wsgiserver.WSGIPathInfoDispatcher({'/': my_app, '/blog': my_blog_app})\n    server = wsgiserver.WSGIServer(d)\n\nTo specify an ``host`` or a ``port``::\n\n    server = wsgiserver.WSGIServer(my_app, host='0.0.0.0', port=8080)\n\nTo add SSL support, just specify a ``certfile`` and a ``keyfile``::\n\n    server = wsgiserver.WSGIServer(my_app, certfile='cert.pem', keyfile='privkey.pem')\n\nNaming\n------\n\n-  *WSGIserver* is the project name\n\n-  *wsgiserver* is the Python module name\n\n-  *WSGIServer* is the main class name\n\nLicense\n-------\n\nWSGIserver files are released under the GNU LGPLv3 or above license.\n\nWSGIserver codebase from CherryPy by CherryPy Team (team@cherrypy.org) under the 3-clause BSD license.\n",
    "bugtrack_url": null,
    "license": "GNU LGPLv3+",
    "summary": "A high-speed, production ready, thread pooled, generic WSGI server with SSL support",
    "version": "1.3",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "http://fgallaire.github.io/wsgiserver"
    },
    "split_keywords": [
        "wsgi",
        "server"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "94436d579a54c12f79f037c245d8bb4692d0c3691b2c8391c5db9f9ddd071712",
                "md5": "6554a4929940c5fcb8954f5d23ec23de",
                "sha256": "1069fd004322f693e4d0b0b336b6785346abb4674a196f851e7d4e601052e383"
            },
            "downloads": -1,
            "filename": "WSGIserver-1.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6554a4929940c5fcb8954f5d23ec23de",
            "packagetype": "bdist_wheel",
            "python_version": "2.7",
            "requires_python": null,
            "size": 26013,
            "upload_time": "2016-09-29T02:32:44",
            "upload_time_iso_8601": "2016-09-29T02:32:44.195505Z",
            "url": "https://files.pythonhosted.org/packages/94/43/6d579a54c12f79f037c245d8bb4692d0c3691b2c8391c5db9f9ddd071712/WSGIserver-1.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b876adaa6544746bd11c6bab6c9b4be0a40054835ef1c92c4487c28c7509ddc0",
                "md5": "8ca68888975826eb26a0be0d28444344",
                "sha256": "1220145eba20262358a7556adb7447dd5c6a736079982623a4f1d2fe69ac5f0e"
            },
            "downloads": -1,
            "filename": "WSGIserver-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8ca68888975826eb26a0be0d28444344",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 40120,
            "upload_time": "2016-09-29T02:32:41",
            "upload_time_iso_8601": "2016-09-29T02:32:41.297438Z",
            "url": "https://files.pythonhosted.org/packages/b8/76/adaa6544746bd11c6bab6c9b4be0a40054835ef1c92c4487c28c7509ddc0/WSGIserver-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2016-09-29 02:32:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "wsgiserver"
}
        
Elapsed time: 0.07428s