create some practical scripts for your clion project!
Project description
QuickProject
Project description
安装:
pip3 install Qpro [--upgrade]
使用:
| Command | Result |
|---|---|
Qpro -init |
为项目添加配置表和相关文件,令下面命令可执行 |
Qpro -h |
查看帮助 |
Qpro -update |
更新Qpro |
tmpm * |
调用模板脚本,刷新项目中的默认源文件 |
run * |
使用运行脚本运行你的项目 |
detector [-[p/f][p/f]] |
运行对拍器(对拍器只能在Qpro -init后的文件夹下运行) |
添加配置表后的项目,可以手动编辑project_configure.csv来调整配置。
配置表
-
修改
project_configure.csv来调整脚本默认配置键值 含义 默认 compile_tool(编译工具, 编译后缀) (gcc, '') / (g++, '') / ... compile_filename待编译的文件 main.cpp / main.c executable_filename编译出的可执行文件名 项目名 input_file默认的输入文件 ./cmake-build-debug/input.txttemplate_root默认的模板根目录 template/
运行脚本:
-
编译或运行
参数 含义 -b 编译 -r 运行 -br 编译且运行 如果上述三个命令都不存在,则默认运行当前编译好的程序
参数 含义 -f *.c/*.cpp设置目标源文件为 *.c/*.cpp -
输入输出:
- 可以编辑
./cmake-build-debug/input.txt来设置默认输入 - 运行
run [...] > output.txt使程序输出到./output.txt
参数 效果 -i 使用 ./cmake-build-debug/input.txt作为输入-if *.*更改输入文件 -if -paste 使用粘贴板内容作为输入 - 可以编辑
-
程序的额外命令行参数:
- 在符合上述命令规则情况下,你可以在任意位置加入参数,这些参数将传递给编译出的程序。
-
查看帮助
run -h: 可以查看使用帮助(Windows系统不支持颜色显示)
-
推荐的命令示例:
命令 效果 run -i使用默认输入文件并运行 run运行 run -br -i编译且使用输入文件运行
模板脚本:
-
使用
命令 效果 tmpm调用刷新脚本,刷新项目中的默认源文件 tmpm -c template algorithm拷贝指定位置, 创建模板集并写入算法 tmpm -a template algorithm拷贝指定位置, 向模板集追加算法 tmpm name在 /// __TEMPLATE__处插入name模板集内的模板 -
关于指定位置:
tmpm将会把compile_filename中处于/// __START__和/// __END__之间的内容识别, 并拷贝
对拍器
- 使用:
detector来进行两个源程序运行结果的对拍,结果存储在当前目录下的./res.html。
| 命令 | 效果 |
|---|---|
detector (-pp) |
打开默认对拍器(文件1与文件2都是程序) |
detector -pf |
运行文件1程序并将结果与文件2对比 |
detector -fp |
运行文件2程序并将结果与文件1对比 |
detector -ff |
对比文件1与文件2的内容(你可以在任何位置调用) |
- 如果脚本未能自动打开
./res.html, 你可以用浏览器打开它。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Qpro-0.4.5.6.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
Qpro-0.4.5.6-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file Qpro-0.4.5.6.tar.gz.
File metadata
- Download URL: Qpro-0.4.5.6.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cd85f3ce9a2e736e60b13e6f1d9ca3f01b29f2110d046efdf4b49e8308a8741
|
|
| MD5 |
511ddab081fe4825a789c656c5e11002
|
|
| BLAKE2b-256 |
54d8be7952554ff9e677f49875f9456c2a0010d370d131911b8d8111bbdb73a1
|
File details
Details for the file Qpro-0.4.5.6-py3-none-any.whl.
File metadata
- Download URL: Qpro-0.4.5.6-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51ba597d3dc5976f034b3b6d078bb318ef26f7542a4b93ac1d39863f400a71f4
|
|
| MD5 |
8ce71a25f7e641f4e71c1543f73236a9
|
|
| BLAKE2b-256 |
09c848d66f84702c25f55c0d1a29259dc1fa7bad44dbf125dcd7684e73bb0baa
|