MTG JSON is a database of Magic: The Gathering cards in JSON format. This is the code for the next major release, which will be version 4.
If you would like to talk to the devs, join us on Discord!
First, you will need at least Python 3.6.
Then, run the following to install dependencies:
python3 setup.py install
To build all set files, as well as AllCards.json
, AllSets.json
, and AllSetsArray.json
, run:
python3 -m mtgjson4 -af
For advanced options, see python3 -m mtgjson4 --help
.