atcoder_helper
atcoder出場を手助けするCLIツールです。
install
pip install atcoder-helper
PyPI: https://pypi.org/project/atcoder-helper/
使い方
最初の初期化
atcoder_helper config initコマンドにより、 $HOME/.atcoder_helper 以下に設定ファイルが作成されます。
問題を解くときの流れ
問題を解くディレクトリの中で以下の準備をします。
ディレクトリの作成・初期化
atcoder_helper task create <コンテスト名> <問題名> コマンドを実行し、ディレクトリを作成して初期化します。
たとえば、ABC160のA問題であれば atcoder_helper abc160 aのようにコマンドを打ちます。
このコマンドにより、問題を解くための雛型が生成されます。また、ビルドコマンド・実行コマンド、問題などの情報を記したタスク設定ファイル.atcoder_helper_task_config.yamlが生成されます。
atcoderにログイン
atcoder_helper auth login でatcoderにログインしてください。
テストケースの取得
作成されたディレクトリに移動し、atcoder_helper fetchコマンドを実行します。
取得したテストケースはtestcases.yamlに保存されます。
問題を解いているとき
atcoder_helper exec で以下のような実行結果を得ることができます。
言語設定ファイルについて
デフォルトでは、~/.atcoder_helper/config.yaml に設定ファイルが作成されます。ここに追記することにより、自分独自の言語設定を追加することができます。 各言語設定は template_dir フィールドを持つことができます。template_dirフィールドが設定されている場合、初期化時に、template_dirに指定されたディレクトリ内のファイルが初期化中のディレクトリに展開されます。
- 使用可能な言語の一覧は
atcoder_helper config languagesで取得できます - 現在デフォルトの言語は
atcoder_helper config defaultで取得できます - デフォルトの言語の変更は
atcoder_helper config use <language>で可能です
tips
- testcases.yamlのtestcaseにexpectedを指定しないテストケースを作成すると、そのケースはJUSTSHOW扱いになり、正答との比較はスキップされ、出力結果の表示だけが行われます。
- 新規にディレクトリを作成せず、その場のディレクトリを初期化する atcoder_helper task init コマンドも存在します。
- その場合、 task configファイルを自分で設定するか、あるいは
atcoder_helper fetch --contest <contest> --task <task>のようにすることで、特定の問題のテストケースを取得できます。
- その場合、 task configファイルを自分で設定するか、あるいは
- 現在、古い時代のコンテストに対応していないことを把握しています。
開発
Metadata
Release files for atcoder-helper 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atcoder_helper-0.1.11.tar.gz | 23.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atcoder_helper-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.2 kB
Release files / atcoder_helper-0.1.11.tar.gz
| Download URL | atcoder_helper-0.1.11.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4833fd90ae406c1c52e3c5b22a64e11178e39953e2dd68b5a702960bfac83063
|
|
BLAKE2b-256 checksum How to use checksums |
29c321c66e389c4088f94f03934417258d1504dbf83d4a1817830e74dff96ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / atcoder_helper-0.1.11-py3-none-any.whl
| Download URL | atcoder_helper-0.1.11-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb44d6e3ca4d7572cd4c190bd43820f37da1c0d81a7386261b363965f3a5e55e
|
|
BLAKE2b-256 checksum How to use checksums |
922da6d987bbbd1b75f2bf70ce3f63731b23fbe83421ee3d92619e317c956f80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|