快速命令启动器
Project description
introduction
runner is a configurable quick launcher for starting (running) commonly used commands (programs). It comes with a log output interface, which is convenient for users to view (color) and save log. And the log output in a special format can also drive the program to draw a progress bar.
install
pip install -r requirements.txt
only tested on the windwos platform, recommended to use the python 3.7 version.
start up
python runner.py - run from codebase
runner - run after install
configure
main configuration file
config.json
{
"maxLogLines": 1000, // max lines to view
"maxStdout": 40960, // max block of stdout
"defaultEncoding": "gbk", // default stdout encodding
"configs": [ // sub configuration item
{
"file": "runner_common.json", // sub configuration file
"title": "通用(测试)" // title in ui
}
]
}
sub configuration file
runner_xxxx.json
[
{
"title": "change codepage to gbk(use with caution)", // title in ui
"cmd": "cmd /c chcp 936", // command ling
"encoding": "gbk", // output encoding
"qss": "color: rgb(150, 0, 0);", // ui styles in qss format
"cwd": "" // current working directory
}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qtrunner-0.0.3.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for qtrunner-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74309885f83f138d994c6cde1bbb410cc004889ae8e2c57f2051e6826bfd96a |
|
MD5 | 1c4ff21f2697e714303b5f2e52b94610 |
|
BLAKE2b-256 | f8ab46ef419d9d84fb219edd308c49785f76fec232d9fd9b2d720ac9b7923794 |