Metadata-Version: 2.4
Name: mtga_helper
Version: 0.2.0
Summary: CLI application to parse log files from MTGA and analyse them using 17lands data
Project-URL: Homepage, https://github.com/lubosz/python-mtga-helper
Project-URL: Bug Tracker, https://github.com/lubosz/python-mtga-helper/issues
Author-email: Lubosz Sarnecki <lubosz@gmail.com>
Maintainer-email: Lubosz Sarnecki <lubosz@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: 17lands,game,limited,mtg,mtga,tcg
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Games/Entertainment :: Turn Based Strategy
Requires-Python: >=3.0
Requires-Dist: coloredlogs
Requires-Dist: numpy
Requires-Dist: requests
Requires-Dist: scipy
Requires-Dist: tabulate
Requires-Dist: termcolor>=3.1.0
Requires-Dist: wcwidth
Requires-Dist: xdg-base-dirs
Description-Content-Type: text/markdown

# python-mtga-helper

CLI application to parse log files from MTGA and analyse them using [17lands](http://17lands.com) data.
The card grading is implemented according to [limited-grades](https://github.com/youssefm/limited-grades).

The following features are implemented:
* Pool analysis for Quick Draft, Premier Draft and Sealed
* Pick analysis for Quick Draft and Premier Draft

## Installation

### PyPI
Install the [PyPI package](https://pypi.org/project/mtga-helper/).
```commandline
pip install mtga-helper
```

### Arch Linux User Repository
Install the [AUR package](https://aur.archlinux.org/packages/python-mtga-helper-git).
```commandline
yay -S python-mtga-helper-git
```

### From source
```commandline
git clone https://github.com/lubosz/python-mtga-helper.git
cd python-mtga-helper
virtualenv .env
. .env/bin/activate
pip install .
```

## Usage
```commandline
usage: mtga-helper [-h] [-l LOG_PATH] [--land-count LAND_COUNT]
                   [--print-top-pairs PRINT_TOP_PAIRS] [-v]
                   [-d {PremierDraft,TradDraft,Sealed,TradSealed}]

Analyse MTGA log for sealed pools with 17lands data.

options:
  -h, --help            show this help message and exit
  -l, --log-path LOG_PATH
                        Custom Player.log path (default: None)
  --land-count LAND_COUNT
                        Target Land count (default: 17)
  --print-top-pairs PRINT_TOP_PAIRS
                        Top color pairs to print (default: 3)
  -v, --verbose         Log some intermediate steps (default: False)
  -d, --data-set {PremierDraft,TradDraft,Sealed,TradSealed}
                        Use specific 17lands format data set (default: PremierDraft)
```

Detailed game logs need to be enabled in
`Options -> Account -> Detailed Logs (Plugin Support)`.

## Screenshots

![screenshot color pair pool](https://raw.githubusercontent.com/lubosz/python-mtga-helper/main/doc/screenshot_color_pair_pool.png)
![screenshot color pair ranks](https://raw.githubusercontent.com/lubosz/python-mtga-helper/main/doc/screenshot_color_pair_ranks.png)
![screenshot draft pick](https://raw.githubusercontent.com/lubosz/python-mtga-helper/main/doc/screenshot_draft_pick.png)