一个简单的服务器应用程序,用于通过http或https和基本授权服务目录
sauth的Python项目详细描述
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