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

qs的Python项目详细描述


说明

quickshare(qs)是(现在是传统的)simplehttpserver的一个变体,它存在于 python 2.x.它允许通过打开http快速共享目录 服务器。qs同时支持python2和python3。

您可以定义上载速率限制以防止客户端使用所有 如果给定或 默认为1。

为什么是流沙?

http://xkcd.com/949/

分享是很有趣的,但在处理多个 操作系统、平台和未体验用户。现在,几乎 所有的东西都有一个网络界面,为什么我们不使用它呢?

文档

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.

依赖关系

docopthttps://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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
在Java中使用工厂设计模式   解析服务器安全性的java最佳实践   java如何解决由于某种原因导致的执行失败?   关于Servlet的java   如何在java中生成一个大的(30MB+)xml文件?   匿名类重写与传递接口,用于在Java中设计回调   java jar从运行时开始。getRuntime()。exec()比从命令行运行的时间长   java Ant脚本排除文件夹(某些文件除外)   java在Windows 10计算机上运行时遇到Maven错误   java Hibernate在同一个表中级联   java PayPal API设置返回URL   java如何在选项卡的右侧显示关闭按钮   当按下Jmenu按钮时,使用java操作侦听器退出程序