https://github.com/multimeric/unreleasedarenadata
Parses useful information out of the Magic Arena data files
https://github.com/multimeric/unreleasedarenadata
Last synced: 5 months ago
JSON representation
Parses useful information out of the Magic Arena data files
- Host: GitHub
- URL: https://github.com/multimeric/unreleasedarenadata
- Owner: multimeric
- License: gpl-3.0
- Created: 2020-08-10T10:41:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T15:41:34.000Z (over 5 years ago)
- Last Synced: 2025-04-02T17:51:30.596Z (12 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arena Data
This is a set of simple command-line utilities for analysing the Magic: the Gathering Arena data files, to determine interesting trivia.
To use this package you'll need basic command-line skills, and have Python 3 installed.
## Installation
Setup a virtual environment with Python 3, then:
```bash
pip install git+https://github.com/TMiguelT/UnreleasedArenaData.git
```
### Requirements
To use the below commands, you'll first have to locate your MTG Arena data directory. On Windows, this is something like `C:/Program Files/Wizards of the Coast/MTGA/MTGA_Data/Downloads/Data`.
If a command below requires the input of a data file such as the `loc-path`, look in this directory for the newest file that begins with `data_loc_*.mtga`. Note: *don't* choose the `.mtga.dat` file, this is different. Similarly, the `card_path` will be named something like `data_cards_*.mtga`.
Secondly, you'll need a copy of the MTGSQLive database. You can download it [here](https://mtgjson.com/api/v5/AllPrintings.sql).
## Usage
### New Arts
Finds art credits in the Arena data files that aren't yet in MTGJSON
```
usage: arena-data new-art [-h] [--loc-path LOC_PATH] [--sql-path SQL_PATH]
[--set-code SET_CODE]
card_path
positional arguments:
card_path Path to the card data file
optional arguments:
-h, --help show this help message and exit
--loc-path LOC_PATH Path to the localisation data file
--sql-path SQL_PATH Path to MTGJSON AllPrintings SQL database, e.g.
https://mtgjson.com/api/v5/AllPrintings.sql
--set-code SET_CODE Optionally, a set code to restrict the search to, e.g.
"AKR" (Amonkhet Remastered)
```
### New Cards
Finds cards in the Arena data files that aren't yet in MTGJSON
```
usage: arena-data new-cards [-h] [--loc-path LOC_PATH] [--sql-path SQL_PATH]
[--new-set-code NEW_SET_CODE]
[--old-set-codes OLD_SET_CODES]
card_path
positional arguments:
card_path Path to the card data file
optional arguments:
-h, --help show this help message and exit
--loc-path LOC_PATH Path to the localisation data file
--sql-path SQL_PATH Path to MTGJSON AllPrintings SQL database, e.g.
https://mtgjson.com/api/v5/AllPrintings.sql
--new-set-code NEW_SET_CODE
The set code of interest, e.g. `AKR` (Amonkhet
Remastered)
--old-set-codes OLD_SET_CODES
The old sets that the new set is based on as a comma-
separated list, e.g. for AKR this should be `AKH,HOU`
```