Creation | ||
Imagery | ||
Inventory | ||
art_image_dl.py | ||
cards.csv | ||
cli_cards.py | ||
create_wallpaper.py | ||
edhrec_deck.py | ||
image_dl.py | ||
interactive_cards_with_dl.py | ||
interactive_cards.py | ||
README.md |
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.