Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

algo-method-tools-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

algo_method_tools-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file algo-method-tools-0.1.2.tar.gz.

File metadata

  • Download URL: algo-method-tools-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for algo-method-tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b183ad5ad4902c23791f1ac78638088e24f140e0116e8d9e7920918338943712
MD5 a972207cf839783067223caf3aea471a
BLAKE2b-256 323f8c940d9aad5bb2731f7f441a75fefd8be5a2d9bacfc75c6ec7cad9c3f42c

See more details on using hashes here.

File details

Details for the file algo_method_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: algo_method_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for algo_method_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf5bb083161d7743679c9568f728f7b8356cd76a72df2096c2886c8352fd7cce
MD5 76ee31e06598b194c01f3373f5a4f03d
BLAKE2b-256 e59a39f95660dd54ce50e00d5fa46e567b23c6aa90089f8c9fdb569e2a630220

See more details on using hashes here.

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