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
- Host: GitHub
- URL: https://github.com/fenhl/mse-to-json
- Owner: fenhl
- License: mit
- Created: 2018-11-10T14:52:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T14:59:16.000Z (almost 6 years ago)
- Last Synced: 2025-02-05T03:47:11.429Z (over 1 year ago)
- Topics: command-line-tool, magic-set-editor, magic-the-gathering, mtgjson
- Language: Python
- Size: 76.2 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.