Skip to content

MTGJSON build scripts to generate alternative data formats

License

Notifications You must be signed in to change notification settings

mtgjson/mtgsqlive

Repository files navigation

MTGSQLive

A project to ETL MTGJSON data into multiple other consumer formats

Connect With Us

Discord via Discord

About Us

MTGJSON and MTGSQLive are open sourced database creation and distribution tool for Magic: The Gathering cards.

You can find our documentation with all properties here.

To provide feedback or to report a bug, please open a ticket.

If you would like to join or assist the development of the project, you can join us on Discord to discuss things further.

Usage

$ pip install -r requirements.txt

$ python3 -m mtgsqlive [--args]

options:
  -h, --help            show this help message and exit
  -i INPUT_FILE, --input-file INPUT_FILE
                        Path to MTGJSON AllPrintings.json
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Where to place translated files

Converters:
  --all                 Run all ETL operations
  --csv                 Compile CSV AllPrinting files
  --mysql               Compile AllPrintings.sql
  --parquet             Compile Parquet AllPrinting files
  --postgresql          Compile AllPrintings.psql
  --sqlite              Compile AllPrintings.sqlite