使用 http 服务器快速共享目录的 CLI 程序
项目描述
描述
QuickShare (qs) 是 python 2.x 中存在的(现在是旧版)SimpleHTTPServer 的变体。它允许人们通过打开一个 http 服务器来快速共享目录。qs 同时支持 python2 和 python3。
您可以定义上传速率限制以防止客户端使用您的所有带宽,如果使用给定或默认端口,它会自动搜索空闲端口。
文档
Usage: qs [-h] [-p PORT] [-r RATE] [--no-sf] [FILE]...
Options:
-h, --help Print this help and exit.
-p, --port PORT Port on which the server is listenning.
Default is 8000
-r, --rate RATE Limit upload to RATE in ko/s.
Default is 0 meaning no limitation.
--no-sf Do not search a free port if the selected one is taken.
Otherwise, increase the port number until it finds one.
--version Print the current version
Arguments:
FILE Files or directory to share.
Default is the current directory: `.'
If '-' is given, read from stdin.
If 'index.html' is found in the directory, it is served.
依赖项
docopt https://github.com/docopt/docopt或“pip install docopt”
安装
最简单的就是使用
pip install qs
或者,在这个目录中,
python setup.py install
执照
该程序在 GPLv3 许可下。
您应该已经收到了一份 GNU 通用公共许可证的副本以及该程序。如果没有,请参阅 < http://www.gnu.org/licenses/ >。
接触
Main developper: Cédric Picard Email: cedric.picard@efrei.net