Skip to main content

使用 http 服务器快速共享目录的 CLI 程序

项目描述

描述

QuickShare (qs) 是 python 2.x 中存在的(现在是旧版)SimpleHTTPServer 的变体。它允许人们通过打开一个 http 服务器来快速共享目录。qs 同时支持 python2 和 python3。

您可以定义上传速率限制以防止客户端使用您的所有带宽,如果使用给定或默认端口,它会自动搜索空闲端口。

为什么选择快速共享?

http://xkcd.com/949/

分享很有趣,但在处理多个操作系统、平台和未经体验的用户时,它很快就会变得很痛苦。如今,几乎所有东西都有一个Web界面,我们为什么不使用它呢?

文档

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

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

qs-1.4.1.tar.gz (4.5 kB 查看哈希

已上传 source