skip to navigation
skip to content

Not Logged In

LittleHTTPServer 0.1.4

Little bit extended SimpleHTTPServer

What is it?

LittleHTTPServer is intended to extend SimpleHTTPServer a little bit more.

Requirements

  • Python 2.6 or 3.x and later

Features

  • Provide an arbitrary directory not only current directory
  • Provide some directories optimized for Sphinx document
  • Provide selectable SocketServer type, Threading or Forking

Setup

$ easy_install LittleHTTPServer

Quick Start

$ littlehttpserver -v -i path/to/top

Show the link to "top" directory via "http://localhost:8000/".

Another example.

$ littlehttpserver -v -d path/to/pkg1/build/html
                      -d path/to/pkg2/build/sphinx/html

Show the link to "pkg1" and "pkg2" optimized for Sphinx documents.

https://bitbucket.org/t2y/littlehttpserver/raw/f2069ef40cdb/list_docs.png

Or, you would like to run as a python script with "-m" option.

$ python -m littlehttpserver -v -i path/to/top -d path/to/pkg1
$ littlehttpserver -h
usage: littlehttpserver [-h] [-d DOCUMENT_DIR] [-i INDEX_DIRECTORY]
                        [-p PORT_NUMBER] [-v] [--protocol PROTOCOL]
                        [--servertype {process,thread}] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -d DOCUMENT_DIR, --dir DOCUMENT_DIR
                        set some document directories
  -i INDEX_DIRECTORY, --indexdir INDEX_DIRECTORY
                        set arbitrary top directory
  -p PORT_NUMBER, --port PORT_NUMBER
                        set server port number
  -v, --verbose         set verbose mode
  --protocol PROTOCOL   set protocol
  --servertype {process,thread}
                        set server type
  --version             show program version

ChangeLog

0.1.4 (2012-08-22)

  • add __main__.py to run as a python script with "-m" option

0.1.3 (2012-08-20)

  • change to use pytest-pep8 for PEP8 compliance
  • improve to be able to get package name with no version number

0.1.2 (2012-02-26)

  • add to be able to extend the argument parser with parent parser
  • refactoring (matching regular expression, testing)

0.1.1 (2012-02-10)

  • add "-i, --indexdir" option

0.1.0 (2012-02-06)

  • first release
 
File Type Py Version Uploaded on Size
LittleHTTPServer-0.1.4.tar.gz (md5) Source 2012-08-22 9KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 98 downloads in the last week
  • 498 downloads in the last month