将命令输出到web浏览器。
web-command的Python项目详细描述
Web命令
将命令输出到web浏览器控制台。在
安装
pip install web-command
示例
^{pr2}$浏览http://localhost:8000/以查看输出。在
使用
usage: web-command [-h] [-a HOST] [-p PORT] [-s] [-l LEVEL] [-w WAIT_TIME]
[-V]
[COMMAND [COMMAND ...]]
Output a command to a web browser.
positional arguments:
COMMAND command to run (default: None)
optional arguments:
-h, --help show this help message and exit
-a HOST, --host HOST host to bind to (default: localhost)
-p PORT, --port PORT port to bind to (default: 8000)
-s, --suppress-output
suppress output (default: False)
-l LEVEL, --log-level LEVEL
log level (default: none)
-w WAIT_TIME, --wait-time WAIT_TIME
seconds to wait before restarting command (default: 5)
-V, --version show version and exit (default: False)
发展
git clone https://github.com/vjagaro/web-command.git
cd web-command-server
poetry install
npm install
npm run build
要生成和发布:
poetry build poetry config repositories.testpypi https://test.pypi.org/legacy/ poetry publish -r testpypi # In another virtual environment: pip install --index-url https://test.pypi.org/simple/ web-command # If this looks good... poetry publish
- 项目
标签: