用于构建algo-method环境的命令行工具
项目描述
algo-method-tools
用于构建algo-method环境的命令行工具
自动生成包含输入示例和输出示例的目录。
本项目的规格可能在没有预先通知的情况下更改(预计将添加对test命令的支持)。
安装方法
$ pip install algo-method-tools
用法
$ algo-tools --help
Usage: algo-tools [OPTIONS] TASK_NO
Arguments:
TASK_NO [required]
Options:
--base-dir PATH [default: /home/yassu/algo-methods]
--template-file TEXT
--help Show this message and exit.
示例
$ algo-tools 316
write into /home/yassu/algo-methods/316
$ cat ~/algo-methods/316/
in_1.txt main.py out_1.txt
$ cat ~/algo-methods/316/main.py
$ cat ~/algo-methods/316/in_1.txt
2 3
1 2 3
4 3 2
$ cat ~/algo-methods/316/out_1.txt
5
# algo-tools/template.pyは自分用のテンプレートファイル
$ algo-tools 316 --base-dir ~/repos/algo-tools --template-file ~/algo-tools/template.py
write into /home/yassu/repos/algo-tools/316
$ ls ~/repos/algo-tools/316/
in_1.txt main.py out_1.txt
$ cat ~/repos/algo-tools/316/main.py
from pprint import pprint
from sys import setrecursionlimit, stdin
from typing import Dict, Iterable, Set
INF: int = 2**62
...
$ cat ~/repos/algo-tools/316/in_1.txt
2 3
1 2 3
4 3 2
$ cat ~/repos/algo-tools/316/out_1.txt
5
选项
--template-file, -t
:指定要使用的模板文件(如果没有指定,则不使用)--base-dir, -b
:指定文件存储的目录
项目详情
关闭
algo-method-tools-0.1.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b183ad5ad4902c23791f1ac78638088e24f140e0116e8d9e7920918338943712 |
|
MD5 | a972207cf839783067223caf3aea471a |
|
BLAKE2b-256 | 323f8c940d9aad5bb2731f7f441a75fefd8be5a2d9bacfc75c6ec7cad9c3f42c |
关闭
算法方法工具的哈希值(algo_method_tools-0.1.2-py3-none-any.whl)
算法 | 哈希摘要 | |
---|---|---|
SHA256 | bf5bb083161d7743679c9568f728f7b8356cd76a72df2096c2886c8352fd7cce |
|
MD5 | 76ee31e06598b194c01f3373f5a4f03d |
|
BLAKE2b-256 | e59a39f95660dd54ce50e00d5fa46e567b23c6aa90089f8c9fdb569e2a630220 |