MTGA set data & tooling for python
Branch: master
Clone or download
Latest commit ca28a25 Feb 3, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
script add collectible, update generation script Feb 3, 2019
source/mtga remove duplicate card Feb 3, 2019
.gitignore
LICENSE Initial commit Jul 11, 2018
MANIFEST.in Add MANIFEST template file Sep 5, 2018
README.md add collectible, update generation script Feb 3, 2019
major_version significantly reduce single-id lookup time Jul 12, 2018
requirements.txt initial commit Jul 11, 2018
setup.py Change to valid Intended Audience to allow upload to test.pypi.org Sep 5, 2018

README.md

Python MTGA

MTGA tools & set data for python. Generated with MTGJSON and scryfall, original MTGA grpId's collected by Fugi & Spencatro.

Installation

pip install mtga

or

python setup.py install

Usage

from mtga.set_data import all_mtga_cards
print(all_mtga_cards.find_one("63773"))
# <Card: 'Torrential Gearhulk' ['Blue'] KLD 63773>

Deploying

Because I always forget:

python setup.py sdist bdist_wheel
twine upload dist/MTGA-<version>*