A auxiliary tool for algorithm competition questioner.
Project description
CGD
Compile-Generate-Diff
- Usage:
usage: cgd [-h] {compile,generate,diff,template} ...
cgd
optional arguments:
-h, --help show this help message and exit
cgd subparsers:
{compile,generate,diff,template}
Compile
usage: cgd compile [-h] [--timeout TIMEOUT]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--tmp-dir TMP_DIR] [--lang {c,cpp,java,py}] [--args ARGS]
[--output OUTPUT] [--output-name OUTPUT_NAME]
source [source ...]
positional arguments:
source source files
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT command execute time limit(ms)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
log level
--tmp-dir TMP_DIR temp dir
--lang {c,cpp,java,py}
source language
--args ARGS compile args
--output OUTPUT, -o OUTPUT
output file directory
--output-name OUTPUT_NAME
output file name
Generate
usage: cgd generate [-h] [--timeout TIMEOUT]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--tmp-dir TMP_DIR] [--mode {std,stdout,rand}] --output
OUTPUT [--gen-path GEN_PATH] [--gen-cls GEN_CLS]
[--std-src STD_SRC] [--std-lang STD_LANG]
[--std-args STD_ARGS] [--std-bin STD_BIN]
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT command execute time limit(ms)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
log level
--tmp-dir TMP_DIR temp dir
--mode {std,stdout,rand}
mode
--output OUTPUT, -o OUTPUT
output file path.
--gen-path GEN_PATH the path of python script
--gen-cls GEN_CLS generate fully qualified class name
--std-src STD_SRC std source code path
--std-lang STD_LANG std source code language
--std-args STD_ARGS std source code compile args
--std-bin STD_BIN std executable binary
Diff
usage: cgd diff [-h] [--timeout TIMEOUT]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--tmp-dir TMP_DIR] [--mode {std,rand}] [--data DATA]
[--gen-path GEN_PATH] [--gen-cls GEN_CLS] [--std-src STD_SRC]
[--std-lang STD_LANG] [--std-args STD_ARGS]
[--std-bin STD_BIN] [--fc-path FC_PATH] [--fc-cls FC_CLS]
[--rand-round RAND_ROUND] [--use-stdout] [--fail-fast]
source [source ...]
positional arguments:
source source files
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT command execute time limit(ms)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
log level
--tmp-dir TMP_DIR temp dir
--mode {std,rand} mode
--data DATA the data path
--gen-path GEN_PATH generator path
--gen-cls GEN_CLS generator class name
--std-src STD_SRC std source code path
--std-lang STD_LANG std source code language
--std-args STD_ARGS std source code compile args
--std-bin STD_BIN std executable binary
--fc-path FC_PATH file comparator path
--fc-cls FC_CLS file comparator class name
--rand-round RAND_ROUND
round in rand mode
--use-stdout diff output with std out
--fail-fast whether exit when fc failed.
Template
usage: cgd template [-h] [--timeout TIMEOUT]
[--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--tmp-dir TMP_DIR] --path PATH [--clean]
optional arguments:
-h, --help show this help message and exit
--timeout TIMEOUT command execute time limit(ms)
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
log level
--tmp-dir TMP_DIR temp dir
--path PATH generate template directory
--clean whether clean the directory before generating template
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
cgd-0.0.2.tar.gz
(11.8 kB
view details)
Built Distribution
cgd-0.0.2-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file cgd-0.0.2.tar.gz
.
File metadata
- Download URL: cgd-0.0.2.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 256f1a848dba703a7fea4086a6491efc91a4119fb2805c120bc85085dafc993f |
|
MD5 | c7f66a61a3df604a80da5845ffe2e1fa |
|
BLAKE2b-256 | e2035b442396b1c4d15533e4fd896ffd1299f6952d3ffb7724c7c6b6423a430c |
File details
Details for the file cgd-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: cgd-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7c166b7c9b1652176b683cd568bcfb06ce1284d85e75bac917dd0663d0b66d1 |
|
MD5 | d9354cf8a4e2d3d48be5cd5d606b9b06 |
|
BLAKE2b-256 | 84432c877316baae1f41082a151a9b73ae294a1d5265261b3de5d8445086046e |