Skip to content

A script that converts Magic Set Editor files to MTG JSON

License

Notifications You must be signed in to change notification settings

fenhl/mse-to-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a command-line Python script that converts Magic Set Editor set files to MTG JSON.

Usage

Installation

  • Python 3.5 or higher is required.
  • You will also need 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=<code>: The expansion code to use for this set. By default, this is read from the MSE set file.

About

A script that converts Magic Set Editor files to MTG JSON

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages