Skip to main content

create some practical scripts for your clion project!

Project description

QuickProject

Project description

安装:

  • pip3 install Qpro [--upgrade]

使用:

Command Result
Qpro -init 为项目添加配置表和相关文件,令QPro*命令可执行
QproRefresh 调用刷新脚本,刷新项目中的默认源文件
QproRun * 使用运行脚本运行你的项目
detector 运行对拍器(对拍器只能在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.txt
    template_file 默认的快照位置 template/main

运行脚本:

  • 编译或运行

    参数 含义
    -b 编译
    -r 运行
    -br 编译且运行

    如果上述三个命令都不存在,则默认运行当前编译好的程序

    参数 含义
    -f *.c / *.cpp 设置目标源文件为*.c / *.cpp
  • 输入输出:

    • 可以编辑 ./cmake-build-debug/input.txt 来设置默认输入
    • 运行 QProRun [...] > output.txt 使程序输出到 ./output.txt
    参数 效果
    -i 使用./cmake-build-debug/input.txt作为输入
    -if *.* 更改输入文件
    -if -paste 使用粘贴板内容作为输入
  • 程序的额外命令行参数:

    • 在符合上述命令规则情况下,你可以在任意位置加入参数,这些参数将传递给编译出的程序。
  • 查看帮助

    • QProRun -h : 可以查看使用帮助(Windows系统不支持颜色显示) help
  • 推荐的命令示例:

    命令 效果
    QProRun -i 使用默认输入文件并运行
    QProRun 运行
    QProRun -br -i 编译且使用输入文件运行

刷新脚本:

  • 运行 QProRefresh 来初始化 main.cpp 为存储在 ./template/main 文件中的内容。

对拍器

  • 运行: detector 来进行两个源程序运行结果的对拍,结果存储在当前目录下的./res.html
  • 如果脚本未能自动打开./res.html, 你可以用浏览器打开它。 GUI

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.3.6.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

Qpro-0.3.6-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page