为当地居民服务。
pyserve的Python项目详细描述
PyServe
pyserve是http服务目录的简单命令接口。
# Python 2.* $ python -m SimpleHTTPServer # Python 3 $ python -m http.server
vs
# Python 2.* $ pyserve # Python 3 $ pyserve
Requirements
- Python(2.6+或3.0+)
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