快速命令启动器
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
"env": { // environment variables
"GP_LANGUAGE": "zh_CN"
}
}
]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
qtrunner-0.0.6-py3-none-any.whl
(16.3 kB
view details)
File details
Details for the file qtrunner-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: qtrunner-0.0.6-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b073c7f11d9fe6cc1e082eb117e53c36e206bdc469a499ff6eb86fb45c51ad5 |
|
MD5 | 282ea65bd4cd8690fea21b50279e69e7 |
|
BLAKE2b-256 | 4c7d8a5dbd0010a5187ae1348670cf95e20e19a5fea3ce6115282b1c201c5e20 |