{ "info": { "author": "Samuele Santi", "author_email": "contact-github@hackzine.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3 :: Only" ], "description": "SPAS - Single Page App Server\n#############################\n\nDevelopment server for single-page apps.\n\nFor when ``python -m http.server`` is not enough.\n\n\nFeatures\n========\n\n- Serve single-page apps, that is, serve the same HTML page no matter\n what the requested path.\n- Serve static files as well\n- Return \"normal\" 404s if a static file is missing, to avoid returning\n HTML when eg. a script was expected.\n- Support SSL. This is mostly handy in case you want to test things\n like browser geolocation API locally using a custom domain (browsers\n only allow geolocation on HTTPS or localhost).\n\n\nSample usage\n============\n\nThis will work nicely to serve the demo app::\n\n spas --bind 127.0.0.1 --port 8000 --root ./demo-app/ --static js,css,img --default-page index.html\n\nNote that, since most options have acceptable defaults, the following\nwould do just the same::\n\n spas --root ./demo-app/\n\n\nFull command help\n=================\n\n::\n\n usage: spas [-h] [--bind ADDRESS] [--port PORT] [--root ROOT] [--static LIST]\n [--default-page PATH] [--ssl]\n\n optional arguments:\n -h, --help show this help message and exit\n --bind ADDRESS, -b ADDRESS\n Specify alternate bind address [default: all\n interfaces]\n --port PORT, -p PORT Specify alternate port [default: 8000]\n --root ROOT Root directory to serve.\n --static LIST Comma-separated list of folders containing static\n files. File not found inside one of these folders will\n return 404 instead of the default index page.\n --default-page PATH Path to the default HTML page to be served for non-\n existing paths. Default: index.html. Relative to the\n root path.\n --ssl Enable SSL\n\n\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/rshk/spas", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "SPAS", "package_url": "https://pypi.org/project/SPAS/", "platform": "", "project_url": "https://pypi.org/project/SPAS/", "project_urls": { "Homepage": "https://github.com/rshk/spas" }, "release_url": "https://pypi.org/project/SPAS/0.1/", "requires_dist": null, "requires_python": "", "summary": "Single-Page App Server", "version": "0.1" }, "last_serial": 2547771, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9260a20219d731fdc0f8a46c160580cf", "sha256": "7610b98736acd02f11e2b13134ca1b67388a0737d4a6b0d90333d6cd02fb1f1d" }, "downloads": -1, "filename": "SPAS-0.1.tar.gz", "has_sig": false, "md5_digest": "9260a20219d731fdc0f8a46c160580cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4981, "upload_time": "2016-12-31T21:55:06", "url": "https://files.pythonhosted.org/packages/c3/1a/16f59e7af98da56fc75bdac8e59eebcff5dd31f10bbc11cec1f2aaaedce5/SPAS-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9260a20219d731fdc0f8a46c160580cf", "sha256": "7610b98736acd02f11e2b13134ca1b67388a0737d4a6b0d90333d6cd02fb1f1d" }, "downloads": -1, "filename": "SPAS-0.1.tar.gz", "has_sig": false, "md5_digest": "9260a20219d731fdc0f8a46c160580cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4981, "upload_time": "2016-12-31T21:55:06", "url": "https://files.pythonhosted.org/packages/c3/1a/16f59e7af98da56fc75bdac8e59eebcff5dd31f10bbc11cec1f2aaaedce5/SPAS-0.1.tar.gz" } ] }