Metadata-Version: 2.1
Name: algo-method-tools
Version: 0.1.2
Summary: algo-method用の環境構築用コマンドラインツール
Home-page: https://gitlab.com/yassu/algo-method-tools
License: MIT
Author: yassu
Author-email: yassu0320.dev@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Terminals
Classifier: Topic :: Utilities
Requires-Dist: beautifulsoup4 (>=4.10.0,<5.0.0)
Requires-Dist: requests (>=2.26.0,<3.0.0)
Requires-Dist: typer (>=0.4.0,<0.5.0)
Project-URL: Repository, https://gitlab.com/yassu/algo-method-tools
Description-Content-Type: text/markdown

algo-method-tools
===================

![image](https://img.shields.io/pypi/v/algo-method-tools)
![image](https://img.shields.io/pypi/pyversions/algo-method-tools)
![image](https://img.shields.io/pypi/l/algo-method-tools)

algo-method用の環境構築用コマンドラインツール

入力例, 出力例を含むディレクトリを自動生成する.

**このプロジェクトの仕様は予告なしに変更される可能性があります (testコマンドに対応すると 変更されることが予想されます).**

## インストール方法

``` bash
$ pip install algo-method-tools
```


## 使い方

``` bash
$ 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.
```


## 使用例

``` bash bash
$ 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`: ファイルを格納するディレクトリを指定する

