Skip to main content

algo-method-tools

image image image

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

Metadata

Release files for algo-method-tools 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algo-method-tools 0.1.2
File Size Uploaded
algo-method-tools-0.1.2.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for algo-method-tools 0.1.2
File Interpreter ABI Platform
algo_method_tools-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.8 kB

Release files / algo-method-tools-0.1.2.tar.gz

Download URL algo-method-tools-0.1.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b183ad5ad4902c23791f1ac78638088e24f140e0116e8d9e7920918338943712
BLAKE2b-256 checksum
How to use checksums
323f8c940d9aad5bb2731f7f441a75fefd8be5a2d9bacfc75c6ec7cad9c3f42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.4.72-microsoft-standard-WSL2

Release files / algo_method_tools-0.1.2-py3-none-any.whl

Download URL algo_method_tools-0.1.2-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf5bb083161d7743679c9568f728f7b8356cd76a72df2096c2886c8352fd7cce
BLAKE2b-256 checksum
How to use checksums
e59a39f95660dd54ce50e00d5fa46e567b23c6aa90089f8c9fdb569e2a630220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.4.72-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page