tigrex is a Python CLI Tool for searching and pricing Magic the Gathering cards using Scryfall's API.
pip
Use the package manager pip to install tigrex.
pip install tigrex
Cloning
Clone the repository and run the script locally. This method will mean that each command has to have python -m tigrex
.
git clone https://github.com/ericjaychi/tigrex.git || [email protected]:ericjaychi/tigrex.git
cd tigrex/
python -m tigrex [command]
All searches leverage a fuzzy search, meaning that the [card_name]
does not have to be exact. Examples:
yuriko
will result in a search result ofYuriko, the Tiger's Shadow
watery
will result in a search result ofWatery Grave
If a full name needs to be searched for, wrapping the [card_name]
in " "
can achieve this, "[card_name]"
. Examples:
"yuriko, the tiger's shadow"
will result in a search result ofYuriko, the Tiger's Shadow
"watery grave"
will result in a search result ofWatery Grave
Fuzzy search will fail if there are multiple results. Examples:`
path to
will fail and not bring up the card `Path to Exile``"path to"
will fail and not bring up the cardPath to Exile
search
tigrex search [card-name]
price
tigrex price [card-name]
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Although this is an open source tool, donations are appreciated greatly!