a5a65d3fe9
* 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. |
||
---|---|---|
mtgsqlive | ||
.gitignore | ||
.pylintrc | ||
LICENSE | ||
mypy.ini | ||
README.md | ||
requirements.txt | ||
requirements_test.txt | ||
setup.py | ||
tox.ini |
MTGSQLive
Connect With Us
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