An open API service indexing awesome lists of open source software.

https://github.com/fenhl/mse-to-json

A script that converts Magic Set Editor files to MTG JSON
https://github.com/fenhl/mse-to-json

command-line-tool magic-set-editor magic-the-gathering mtgjson

Last synced: about 1 year ago
JSON representation

A script that converts Magic Set Editor files to MTG JSON

Awesome Lists containing this project

README

          

This is a command-line [Python](https://www.python.org/) script that converts [Magic Set Editor](https://magicseteditor.boards.net/) set files to [MTG JSON](https://mtgjson.com/).

# Usage

## Installation

* Python 3.5 or higher is required.
* You will also need [`more_itertools`](https://pypi.org/project/more-itertools/).

## Basic usage

Run the script from the command line with a single argument specifying which MSE set file to convert. The argument can be `-` to read the set file from standard input. The JSON file will be printed to standard output, use your shell's redirection features if you want to save it to disk instead. Additionally, the following optional arguments are supported:

## Command-line options

* `--decode`: If used, instead of generating JSON, the MSE set file is unzipped and its `set` text file is printed to stdout.
* `--set-code=`: The expansion code to use for this set. By default, this is read from the MSE set file.