Skip to content
Serve local dirs (human version)
Python
Find file
Latest commit 5942ff2 Apr 2, 2013 @klen Fix Makefile
Failed to load latest commit information.
pyserve Update version Mar 30, 2013
tests Upgrade pyserve. Jun 13, 2012
.gitignore Fix test Mar 30, 2013
.travis.yml
Changelog
LICENSE Some work done. Jun 4, 2012
MANIFEST.in
Makefile Fix Makefile Apr 2, 2013
README.rst Fix readme Mar 30, 2013
example.png
requirements.txt Python3 support Jun 14, 2012
setup.py Fix Makefile Apr 1, 2013
tests.py Fix test Mar 30, 2013
tox.ini Fix test Mar 30, 2013

README.rst

PyServe

PyServe is the simple command interface for HTTP serving directories.

Build Status
# Python 2.*
$ python -m SimpleHTTPServer

# Python 3
$ python -m http.server

VS

# Python 2.*
$ pyserve

# Python 3
$ pyserve
https://raw.github.com/klen/pyserve/master/example.png

Requirements

  • python (2.6+ or 3.0+)

Installation

Distribute:

$ easy_install pyserve

PIP:

$ pip install pyserve

Usage

$ pyserve --help

usage: pyserve [-h] [-p PORT] [-s] [-a] [path]

Serve current directory

positional arguments:
path                  Path to serve directory.

optional arguments:
-h, --help            show this help message and exit
-p PORT, --port PORT  The port of the webserver.
-s, --share           Make server available externally.
-a, --autoindex       Enable autoindex files.
-d, --hidden          Hide system files
Something went wrong with that request. Please try again.