diff --git a/README.md b/README.md index 02c5707..345f05f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,14 @@ # Python MTGA + +## pak21 fork + +If you're reading this, it means you obtained this package from [pak21's fork](https://github.com/pak21/python-mtga) +of the [original](https://github.com/mtgatracker/python-mtga). This +fork has potentially breaking changes, please do not file any issues +found with this fork on the original. + +## Introduction + MTGA tools & set data for python. Original cardset generated with MTGJSON and scryfall, with initial set of MTGA grpId's collected by Fugi & Spencatro. (Now we just use the data already present in your MTGA installation.) @@ -22,4 +32,4 @@ Because I always forget: python setup.py sdist bdist_wheel twine check dist/* # check for readme issues (e.g. line endings MUST BE LF, not CRLF lol) twine upload dist/MTGA-* -``` \ No newline at end of file +``` diff --git a/source/allcards.py b/source/allcards.py new file mode 100755 index 0000000..ac6d3b9 --- /dev/null +++ b/source/allcards.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 + +import mtga + +all_styles = [set(card.styles) for card in mtga.all_mtga_cards.cards] +print(set().union(*all_styles)) diff --git a/source/mtga/set_data/.__init__.py.swp b/source/mtga/set_data/.__init__.py.swp deleted file mode 100644 index c081ce6..0000000 Binary files a/source/mtga/set_data/.__init__.py.swp and /dev/null differ