MTGJSON build scripts to generate alternative data formats
Find a file
Mark Cheese a5a65d3fe9 Some Minor Fixes and Improvements (#20)
* Quality of life change.

* Updated json2sql.py

- Added "prices" table.
- Tidy'd up: fixed some minor formatting, and made some small improvements to log output.
- Added option of using "AllSetFiles" for input, simply provide a path to the directory as the input.
- Added auto-increment "id" column as primary key to relational tables for easy referencing.

To-Do:
- allow .zip and other compressed input
- Standardize formatting (Escaping characters, quote types/positioning, line breaks, etc.)

* Update mtgsqlive/json2sql.py

Co-Authored-By: Zach H <zahalpern+github@gmail.com>

* Put json2sql.py back where it belongs!

* Delete json2sql.py

* Applied suggestions and cleaned up a little more.
2019-07-12 22:49:12 -04:00
mtgsqlive Some Minor Fixes and Improvements (#20) 2019-07-12 22:49:12 -04:00
.gitignore MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
.pylintrc MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
LICENSE License change approved. MTGJSON moving from GPLv3->MIT. 2019-06-22 23:59:05 -04:00
mypy.ini MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
README.md MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
requirements.txt MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
requirements_test.txt MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
setup.py MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00
tox.ini MTGJSONv4 Support (#10) 2019-01-17 17:04:42 -05:00

MTGSQLive

Connect With Us

Discord via Discord

Gitter via Gitter

Goals

The goals of this project are to extend the MTGJSONv4 protocols and give an option for pre-processed SQLite downloads. lly edit it to be correct. Once that is accomplished, we are then no longer dependent on them for card data, except for rullings.

About Us

MTGJSON and MTGSQlive are open sourced database creation and distribution tool for Magic: The Gathering cards, specifically in JSON and SQLite format.

You can find our documentation with all properties here.

To provide feedback and/or bug reports, please open a ticket as it is the best way for us to communicate with the public.

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

How To Use

Note: These are the build directions to compile your own SQLite file.
If you are looking for the pre-compiled SQLite file, you can download it from MTGJSON.com.

This system was built using Python 3.7, so we can only guarantee proper functionality with this version.

# Install dependencies
$ pip3 install -r requirements.txt 

# usage: mtgsqlive [-h] -i file -o file 
$ python3 -m mtgsqlive -i /path/to/AllSets.json -o /path/to/output.sqlite