Mercurial > hg > FileServer
comparison README.txt @ 21:3ce9fe38f5e1
addendum
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 29 Feb 2012 16:39:50 -0800 |
| parents | 1eb5e82605a5 |
| children | 41bd126ab77d |
comparison
equal
deleted
inserted
replaced
| 20:1eb5e82605a5 | 21:3ce9fe38f5e1 |
|---|---|
| 33 * ``main``: command line entry point | 33 * ``main``: command line entry point |
| 34 | 34 |
| 35 ``FileApp`` and ``file_response`` are heavily borrowed from | 35 ``FileApp`` and ``file_response`` are heavily borrowed from |
| 36 http://docs.webob.org/en/latest/file-example.html though the example | 36 http://docs.webob.org/en/latest/file-example.html though the example |
| 37 there is more complete. I will work on making this more thorough | 37 there is more complete. I will work on making this more thorough |
| 38 going forward. | 38 going forward. I also borrowed from Paste's ``StaticURLParser`` and |
| 39 ``static.Cling``. | |
| 39 | 40 |
| 40 In addition there is a command line script, ``serve``, which may be | 41 In addition there is a command line script, ``serve``, which may be |
| 41 used to serve a directory with the | 42 used to serve a directory with the |
| 42 `wsgiref <http://docs.python.org/library/wsgiref.html>`_ server. | 43 `wsgiref <http://docs.python.org/library/wsgiref.html>`_ server. |
| 43 | 44 |
| 45 -------------- | 46 -------------- |
| 46 | 47 |
| 47 While I didn't find them suitable for my use, there are other | 48 While I didn't find them suitable for my use, there are other |
| 48 standalone static fileservers available for python: | 49 standalone static fileservers available for python: |
| 49 | 50 |
| 50 * `Cling <http://lukearno.com/projects/static/>`_ | 51 * `static <http://lukearno.com/projects/static/>`_ |
| 51 | 52 |
| 52 * `Paste <http://pythonpaste.org/modules/urlparser.html>`_ ``StaticURLParser`` | 53 * `Paste <http://pythonpaste.org/modules/urlparser.html>`_ ``StaticURLParser`` |
| 53 | 54 |
| 54 * `SimpleHTTPServer <http://docs.python.org/library/simplehttpserver.html>`_ | 55 * `SimpleHTTPServer <http://docs.python.org/library/simplehttpserver.html>`_ |
| 55 | 56 |
