A bunch of CLI tools for Magic: The Gathering written mostly in Python
Go to file
2024-08-13 18:53:55 -04:00
Creation Updated layout and added README.md for each 2024-08-13 18:53:13 -04:00
Imagery Updated layout and added README.md for each 2024-08-13 18:53:13 -04:00
Inventory Updated layout and added README.md for each 2024-08-13 18:53:13 -04:00
art_image_dl.py Created new scripts for downloading art_crops 2024-08-13 16:54:01 -04:00
cards.csv sorting csv by set and card id 2024-08-13 16:25:54 -04:00
cli_cards.py updated scripts 2024-08-13 16:27:22 -04:00
create_wallpaper.py Created new scripts for downloading art_crops 2024-08-13 16:54:01 -04:00
edhrec_deck.py added edh deck maker using edhrec and scryfall 2024-08-13 17:47:47 -04:00
image_dl.py updated scripts 2024-08-13 16:27:22 -04:00
interactive_cards_with_dl.py Created new scripts for downloading art_crops 2024-08-13 16:56:15 -04:00
interactive_cards.py sorting csv by set and card id 2024-08-13 16:25:54 -04:00
README.md Updated layout and added README.md for each 2024-08-13 18:53:55 -04:00

Magic: The Gathering CLI Tools

I really love Magic: The Gathering and wanted to make a set of tools for me to use to create an inventory of my collection, download the card images or art crops of my collection, and create a wallpaper from those images.

Creation

In the Creation Directory, we have an EDH deck creation tool that takes a Commander's name and looks on EDHRec through the Archidekt section, pulls the UUID and quanities of the cards, parses the UUID's on Scryfall for the card's name, then outputs it into a text file that's setup for use on Moxfield (or any other site that utilizes the same deck list style).

Imagery

If you're more into images of your inventory, the tools inside Imagery will be more up your alley. These tools will allow you to input your cards using the interactive_cards_with_dl.py script which will output the cards into a CSV file. The image_dl.py and art_image_dl.py will download the card imagery from Scryfall and place them into their correct folders.

Once you've completed that, if you want to make a wallpaper out of those images, you can use create_wallpaper.py to create a wallpaper with your downloaded card images.

Inventory

The age old question, "How can I inventory my cards?" These tools will allow you to do so. With cli_cards.py, you can do it completely by hand. An example input would be:

How the CLI is laid out: Card_Name Set_Code Collector_Number Quantity Foil

CLI Example: Evercoat Ursine blc 64 1 False

interactive_cards.py does similar, but walks through each section interactively. A full example is found in the Inventory section.