Skip to main content

Convenient modules & tools for AtCoder users, written in Python 3.5

Project description

[![Build Status](https://travis-ci.org/kyuridenamida/atcoder-tools.svg?branch=master)](https://travis-ci.org/kyuridenamida/atcoder-tools)
[![codecov](https://codecov.io/gh/kyuridenamida/atcoder-tools/branch/master/graph/badge.svg)](https://codecov.io/gh/kyuridenamida/atcoder-tools)
[![PyPI](https://img.shields.io/pypi/v/atcoder-tools.svg)](https://pypi.python.org/pypi/atcoder-tools)

atcoder-tools
====
Python 3.5 で動作する [AtCoder](http://atcoder.jp/) からサンプル入力をダウンロードしたりする際に便利なツールです。

このツールには次のような機能があります。
- AtCoderへのログイン,入出力例データなどの抽出
- 枝刈り探索による高精度・高速な入力解析 (ARC、ABC、AGCについては約9割ほど)
- 解析結果を用いたテンプレートコードの自動生成(C++, Java)
- 他言語対応のためのコントリビューション(≒中間形式からコードに変換する部分のPR)を募集中です!

## History

| 日付 | ログ |
| ---- | ---- |
| 2018-12-25 | 長らく触っておらずメンテナンスが困難になってしまったので、下位互換性のない大規模コードベース変更を実施した。(すみません!) |
| 2018-12-03 | ToolsForAtCoder は atcoder-tools に名前を変更した。 |
| 2016-04-01 | 最初のバージョンをリリースした。 |

## How to install
`pip3 install atcoder-tools`

## Demo
※最初期のデモなので今とインターフェイスが異なります

[Video demo for 'Tools For AtCoder'](https://youtu.be/Ee3EWs_xHG8)


## Usage


*重要: かつてログイン情報を保持するために`AccountInformation.py`に書き込むことを要求していましたが、セキュリティリスクが高すぎるため、セッション情報のみを保持する方針に切り替えました。
過去のユーザーの方はそのファイルを削除することを推奨します。*


- `atcoder-tools gen {contest_id}` コンテスト環境を用意するコマンド
- `atcoder-tools test` カレント・ディレクトリ上に実行ファイルと入出力(in_\*.txt, out_\*.txt)がある状態で実行するとローカルテストを行う

例:
```
$ atcoder-tools gen agc001
$ cd ~/atcoder-workspace/agc001/A
$ g++ main.cpp
$ atcoder-tools test
```

`--without-login` 引数を指定するとログインなしでデータをダウンロードできます(一般公開されているコンテストのみ)。

```
$ atcoder-tool gen [contest_id] --without-login
```


## Contribution
気軽にPRを送ってください。

## Licence

[MIT](https://github.com/kyuridenamida/ToolsForAtCoder/blob/master/LICENCE)

## Author

[kyuridenamida](https://github.com/kyuridenamida) ([@kyuridenamida](https://twitter.com/kyuridenamida))


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

atcoder-tools-1.0.2.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atcoder_tools-1.0.2-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

File details

Details for the file atcoder-tools-1.0.2.tar.gz.

File metadata

  • Download URL: atcoder-tools-1.0.2.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for atcoder-tools-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9649158f9b7d9e66c0751947ea662b6f07f44225ad83fef92992371dba22818f
MD5 717fa5f0cdfac83887c13ec6f0325ff1
BLAKE2b-256 5d9c644756a640fb07f9ccc59ac2487adab21edaf3a44eb30a40482cce436c08

See more details on using hashes here.

File details

Details for the file atcoder_tools-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: atcoder_tools-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 32.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for atcoder_tools-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb9dc250837fbfbbef551531024870c74b171518d6ee6e6b7adac359c21c65f3
MD5 b746b7c4d3dfbd3c84239dba3a5d22db
BLAKE2b-256 cc2aaaabde6dc85c16bdf88773e2a80e46a6a0fc2fd4873fbd813a7112248a1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page