{ "info": { "author": "Jeff Hammel", "author_email": "jhammel@mozilla.com", "bugtrack_url": null, "classifiers": [], "description": "FileServer\n===========\n\na simple static fileserver and directory index server in python (WSGI app)\n\nAbout\n-----\n\nOften for testing you will want a static fileserver and directory\nindex as part of your WSGI stack. In addition, you may have\nrequirements to run such as part of a production WSGI\nstack. FileServer fits these needs.\n\nMotivation\n----------\n\nI needed a directory index server a la Apache to test a PyPI clone I\nwas using. After surveying what was out there, there didn't seem\nanything out there that was easily consumable for my purposes. So I\nwrote one only depending on\n`webob `_ .\n\nContents\n--------\n\n``from fileserver import *`` should give you access to all of the\nusable components of fileserver:\n\n * ``file_response``: return a webob response object appropriate to a\n file name\n * ``FileApp``: WSGI app that wraps ``file_response``\n * ``Directory Server``: serves a directory tree and generated indices\n * ``main``: command line entry point\n\n``FileApp`` and ``file_response`` are heavily borrowed from\nhttp://docs.webob.org/en/latest/file-example.html .\nI also borrowed from Paste's ``StaticURLParser`` and ``static.Cling``.\n\nIn addition there is a command line script, ``serve``, which may be\nused to serve a directory with the\n`wsgiref `_ server.\n\nTests\n-----\n\ndoctests and a test runner, ``test.py``, exist in the ``tests/``\nsubdirectory of http://k0s.org/hg/FileServer . I currently use\n``paste.fixture.TestApp`` to mock requests and inspect responses, but\nshould probably move to\n`WebTest `_ .\n\nOther Projects\n--------------\n\nWhile I didn't find them suitable for my use, there are other\nstandalone static fileservers available for python:\n\n * `static `_\n\n * `Paste `_ ``StaticURLParser``\n\n * `SimpleHTTPServer `_\n\n----\n\nJeff Hammel\n\nhttp://k0s.org/hg/FileServer", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://k0s.org/hg/FileServer", "keywords": null, "license": "MPL", "maintainer": null, "maintainer_email": null, "name": "FileServer", "package_url": "https://pypi.org/project/FileServer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/FileServer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://k0s.org/hg/FileServer" }, "release_url": "https://pypi.org/project/FileServer/0.3/", "requires_dist": null, "requires_python": null, "summary": "a simple static fileserver and directory index server in python (WSGI app)", "version": "0.3" }, "last_serial": 784246, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ecda8ac79da03d3de69c2aae5278572f", "sha256": "1c570a7e0cb8382ce200f5ea84ad1702e2a95a8605df2e38f7e2f42f4fddad26" }, "downloads": -1, "filename": "FileServer-0.1.tar.gz", "has_sig": false, "md5_digest": "ecda8ac79da03d3de69c2aae5278572f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3048, "upload_time": "2012-02-29T22:40:35", "url": "https://files.pythonhosted.org/packages/8c/6c/628cf7e34ed2de76bbc30aa6150bd77fa016e87ff6663b969c20c0fd3ead/FileServer-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "25adb4162027d2023bb9997251ce0645", "sha256": "6d54bb6016b6cff64cf058456a1f011d1d2469684831d80ae60986784e8e4219" }, "downloads": -1, "filename": "FileServer-0.2.tar.gz", "has_sig": false, "md5_digest": "25adb4162027d2023bb9997251ce0645", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3938, "upload_time": "2012-03-01T01:41:41", "url": "https://files.pythonhosted.org/packages/02/0a/20a2ca9124fa4c59f3c0af11b0e2bae4950897c7d1363506994fc434fb54/FileServer-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "7d8386335dc40edfc2b19bab9370c4a4", "sha256": "0074c2c1688b22a71f220562969ddaa556aa4b8787b7bf1f12ac822708bfb4e4" }, "downloads": -1, "filename": "FileServer-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7d8386335dc40edfc2b19bab9370c4a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3989, "upload_time": "2012-03-02T21:51:14", "url": "https://files.pythonhosted.org/packages/37/ac/f05080ab423b22d65aec468de0b58f53545d65db33bbeab1cb3571a3d89f/FileServer-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "06299176dd2486d1729de6c93482e4f3", "sha256": "ed733028766915f794544dfe4af8b3824ddc7c2d072ee5f18e4e4fd0ddbb486a" }, "downloads": -1, "filename": "FileServer-0.3.tar.gz", "has_sig": false, "md5_digest": "06299176dd2486d1729de6c93482e4f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4453, "upload_time": "2012-03-05T23:10:19", "url": "https://files.pythonhosted.org/packages/4e/e5/b80f4a307e67dab2b770f3f49af3cd67ad8269356b6df08a19dca3605fbf/FileServer-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "06299176dd2486d1729de6c93482e4f3", "sha256": "ed733028766915f794544dfe4af8b3824ddc7c2d072ee5f18e4e4fd0ddbb486a" }, "downloads": -1, "filename": "FileServer-0.3.tar.gz", "has_sig": false, "md5_digest": "06299176dd2486d1729de6c93482e4f3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4453, "upload_time": "2012-03-05T23:10:19", "url": "https://files.pythonhosted.org/packages/4e/e5/b80f4a307e67dab2b770f3f49af3cd67ad8269356b6df08a19dca3605fbf/FileServer-0.3.tar.gz" } ] }