Source

littlehttpserver /

Filename Size Date modified Message
littlehttpserver
87 B
145 B
11.1 KB
85 B
1.3 KB
1.5 KB
215 B

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 Sphinx document directories
  • Provide selectable SocketServer type, Threading or Forking

Setup

$ easy_install LittleHTTPServer

Quick Start

$ littlehttpserver -v -d path/to/dir1 -d path/to/dir2

You can access dir1 and dir2 via "http://localhost:8000/".

$ 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