/StackIt

Python script generating a column-shaped TCG decklist based on cropped captions of each card's art.

Primary LanguagePythonMIT LicenseMIT

StackIt Build Status

Python script generating a column-shaped TCG decklist based on cropped captions of each card's art.

Requirements

  • Python 2.7, or 3.5 or above
  • pillow, lxml, pyYAML and requests
    • install with pip install -r requirements.txt

Roadmap

The current features of this version are:

  1. final picture is generated as a .png file;
  2. reads the decklist from a file name given as a variable on the command line (rather than hard-coded in the script, giving user some flexibility);
  3. includes a title header based on the name of the decklist;
  4. has the default option of Unhinged art for all basic lands (Magic: the Gathering decks).

Currently StackIt supports:

  • Magic the Gathering
  • Pokemon TCG
  • Hex TCG

Currently in development is:

  1. support for other TCG's: Pokemon, Hex were added after user feedback. Any request will be considered if databases for card arts are provided;
  2. support for EDH decklists (Magic: the Gathering): make the display more comfortable for 100 card, singletong decks.

Finally, I would like to thank the community for its incredible feedback and support. What started as a small pet project for myself quickly blew up and is now being posted here on GitHub. It feels both awesome and surreal!

Usage

** Run the script (Beta version)

From the command prompt:

python StackIt.py decklist.dec

The decklist name does not really matter in the Beta version, as long as the extension does not exceed 3 characters (.dec, .mtg or other). The output file will be an image file named 'decklist.png'.

** Sample input decklist format

The decklist file should look like this:

4 Gifts Ungiven
4 Vendilion Clique / MM2

The separation ' / ' is necessary in the current Beta version to request a specific card art by adding the 3 letter code of the corresponding set - e.g. MM2 for the Modern Master 2015 art of Vendilion Clique.

Note: the above is a Magic: the Gathering feature only; for Hex TCG, Alternate Arts are supported if '[AA]' label is added after the requested card name.

To test the Beta version, the decklist StressTest1.dec is provided.

Sample Output

Sample Output