{ "info": { "author": "Armin Ronacher", "author_email": "armin.ronacher@active-4.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "James WSGI Server\n =================\n \n [James][1] provides a very simple multi-threaded [WSGI][2] server\n implementation based on the HTTPServer from Python's standard library.\n \n You can host multiple applications on one host as well as static files.\n \n **Important** - James is is a simple server for use in testing or\n debugging WSGI applications. It hasn't been reviewed for security\n issues. Don't use it for production use.\n \n Use it for demo and debugging purposes.\n \n \n Basic Example\n -------------\n You can add a James call using the `__name__` hook on the bottom of\n your application file:\n \n if __name__ == '__main__':\n from james import WSGIServer\n WSGIServer(applications={'/': my_application}).run()\n \n This example assumes that your application is named `my_application`.\n Your application will be mounted on `/`. Using the `applications`\n parameter you can install more than one application on the same james\n server.\n \n \n Serving Static Files\n --------------------\n James can also handle static files. For this purpose it takes a\n parameter `files`:\n \n if __name__ == '__main__':\n from os import path\n from james import WSGIServer\n base = path.dirname(__file__) + '/static'\n \n WSGIServer(\n applications={\n '/': my_application\n },\n files={\n '/favicon.ico': base + '/favicon.ico',\n '/css': base + '/css',\n '/img': base + '/img'\n }\n ).run()\n \n \n Defining Hostname and Port\n --------------------------\n Per default James listens on [localhost][3] Port 8080.\n \n To change this behavior you can use the parameters `hostname` and\n `port`:\n \n if __name__ == '__main__':\n from james import WSGIServer\n WSGIServer(hostname='mycomputername', port=80,\n applications={'/': myapplication}).run()\n \n Autoreloading Code\n ------------------\n Per default James is persistent which means imported module get only\n reloaded when you restart the server. Because James is meant as an\n developement server you can enable automatically code reloading with\n the `autoreload` parameter:\n \n if __name__ == '__main__':\n from james import WSGIServer\n WSGIServer(applications={'/': myapplication},\n autoreload=True).run()\n \n Testing James\n -------------\n You can get this page if you call `james.test()`.\n \n \n [1]: http://wsgiarea.pocoo.org/james/\n [2]: http://www.python.org/peps/pep-0333.html\n [3]: http://localhost:8080/", "description_content_type": null, "docs_url": null, "download_url": "http://wsgiarea.pocoo.org/james/dist/James-0.7.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://wsgiarea.pocoo.org/james/", "keywords": "wsgi html web server", "license": "GNU General Public License (GPL)", "maintainer": null, "maintainer_email": null, "name": "James", "package_url": "https://pypi.org/project/James/", "platform": "any", "project_url": "https://pypi.org/project/James/", "project_urls": { "Download": "http://wsgiarea.pocoo.org/james/dist/James-0.7.1.tar.gz", "Homepage": "http://wsgiarea.pocoo.org/james/" }, "release_url": "https://pypi.org/project/James/0.7.1/", "requires_dist": null, "requires_python": null, "summary": "simple standalone WSGI server with code reloading", "version": "0.7.1" }, "last_serial": 802578, "releases": { "0.7": [], "0.7.1": [] }, "urls": [] }