{
"info": {
"author": "Ken Kinder",
"author_email": "ken@kkinder.com",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries"
],
"description": "######\nwsgigo\n######\n\nWhat is it?\n-----------\n\nWSGI go is a very simple WSGI router with no requirements. It does currently require Python 3, though it could be\neasily backported.\n\nInstallation\n------------\n\n pip install wsgigo\n\n\nUsage\n-----\n\nYou can use it to route WSGI requests to specific apps based on hostname, URL fragment, or (through extending the\nRoute class) other criteria. For example, suppose you have three wsgi apps which you want to serve as one::\n\n from wsgigo import AppRouter\n\n app = AppRouter(default_app=main_website)\n app.add_startswith(docs_app, '/docs/')\n app.add_hostname(api_app, 'api.local')\n\nYou can also make your own router class, to route apps how you need them to be routed::\n\n class InternetExplorerRouter(Route):\n def claim(self, environ):\n user_agent = environ['HTTP_USER_AGENT']\n if 'Trident/7.0' in user_agent or 'MSIE' in user_agent:\n return True\n\n internet_explorer_app = TestWsgiApp(\"really simple webpage\")\n real_app = TestWsgiApp(\"really ADVANCED webpage\")\n\n router = AppRouter(default_app=real_app)\n router.add_route(InternetExplorerRouter(internet_explorer_app))\n",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/kkinder/wsgigo",
"keywords": "wsgi router routing",
"license": "",
"maintainer": "",
"maintainer_email": "",
"name": "wsgigo",
"package_url": "https://pypi.org/project/wsgigo/",
"platform": "",
"project_url": "https://pypi.org/project/wsgigo/",
"project_urls": {
"Homepage": "https://github.com/kkinder/wsgigo"
},
"release_url": "https://pypi.org/project/wsgigo/1.0.1/",
"requires_dist": null,
"requires_python": "",
"summary": "Simple wsgi app that routes requests to other wsgi apps. A WSGI router.",
"version": "1.0.1"
},
"last_serial": 3581996,
"releases": {
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "18ce9c3c8feb2dcf00938408d8ab01e3",
"sha256": "0f774a0d589ec1b585aeaeaa5bda1f98c2a31ffbea15794d9a0c625dbd5953c9"
},
"downloads": -1,
"filename": "wsgigo-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "18ce9c3c8feb2dcf00938408d8ab01e3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3177,
"upload_time": "2018-02-14T17:25:42",
"url": "https://files.pythonhosted.org/packages/4d/c2/d23904e09f04832eba9b079a640b7244fa09c8bebb8afc2a6f6587443c07/wsgigo-1.0.0.tar.gz"
}
],
"1.0.1": [
{
"comment_text": "",
"digests": {
"md5": "20a2656e28313b9c94ff006411fa9693",
"sha256": "3f4edbbaeb730f6a92d38206c47c761db3a177f730663be9533c1a5262eed376"
},
"downloads": -1,
"filename": "wsgigo-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "20a2656e28313b9c94ff006411fa9693",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3164,
"upload_time": "2018-02-14T17:33:14",
"url": "https://files.pythonhosted.org/packages/4e/79/e20e5f88f7ecae4fa61286a5ef4a5fd2e268997fc86b260f3ce2e52e9ca6/wsgigo-1.0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "20a2656e28313b9c94ff006411fa9693",
"sha256": "3f4edbbaeb730f6a92d38206c47c761db3a177f730663be9533c1a5262eed376"
},
"downloads": -1,
"filename": "wsgigo-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "20a2656e28313b9c94ff006411fa9693",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3164,
"upload_time": "2018-02-14T17:33:14",
"url": "https://files.pythonhosted.org/packages/4e/79/e20e5f88f7ecae4fa61286a5ef4a5fd2e268997fc86b260f3ce2e52e9ca6/wsgigo-1.0.1.tar.gz"
}
]
}