一个简单的服务器应用程序,用于通过http或https和基本授权服务目录

sauth的Python项目详细描述


https://img.shields.io/pypi/v/sauth.svg

s服务器auth 一个简单的服务器,用于通过http或https和基本授权服务目录:

$ sauth --help
Usage: sauth [OPTIONS] USERNAME PASSWORD [IP] [PORT]

  Start http server with basic authentication current directory.

Options:
  --https     use https
  --dir TEXT  use different directory
  --help      Show this message and exit.
  • 自由软件:GNU通用公共许可v3

安装

pip install sauth

用法

只需运行:

$ sauth someuser somepass
Serving "/home/user/somedir" directory on http://0.0.0.0:8333

您可以使用第三个和第四个参数指定要服务的端口和IP:

$ sauth someuser somepass 127.0.0.1 1234
Serving "/home/user/somedir" directory on http://127.0.0.1:1234

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

推荐PyPI第三方库


热门话题
java如何使用Ibatis在插入时返回ID(使用返回关键字)   java(org.hibernate.TransactionException)org。冬眠TransactionException:事务未成功启动   java小程序jwindow始终位于JNLP顶部   在Java中重新解析JSON对象?   java单击后将ListView数据移动到新屏幕   Mule ESB中的java WSA寻址特性   Java,对象编程:获取返回0值的方法   hibernate的Java通用问题,如何处理T get(K id)   java在使用超级CSV读取CSV时忽略引用   ssh使用Java远程运行命令   java如何向具体用户发送websocket消息?   在JAVA中,我可以在不指定的情况下使用条件运算符吗?