Skip to main content

tigrex

Donate Release

tigrex is a Python CLI Tool for searching and pricing Magic the Gathering cards using Scryfall's API.

Installation

pip

Use the package manager pip to install tigrex.

pip install tigrex

Homebrew

Use Homebrew to install tigrex.

brew tap ericjaychi/tigrex
brew 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 || git@github.com:ericjaychi/tigrex.git
cd tigrex/
python -m tigrex [command]

Usage

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 of Yuriko, the Tiger's Shadow
  • watery will result in a search result of Watery 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 of Yuriko, the Tiger's Shadow
  • "watery grave" will result in a search result of Watery 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 card Path to Exile

Commands

search - Search for an MTG card.

tigrex search [card-name]

tigrex search

price - Search for an MTG card price.

tigrex price [card-name]

tigrex search

currency - Set the currency of the card searches inside of config.ini so that price shows in the either USD, EUR, or TIX. Foil prices are only in USD.

tigrex currency [usd | eur | tix]

tigrex search

Contributing

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!

License

MIT

Metadata

Release files for tigrex 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tigrex 1.3.0
File Size Uploaded
tigrex-1.3.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tigrex 1.3.0
File Interpreter ABI Platform
tigrex-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / tigrex-1.3.0.tar.gz

Download URL tigrex-1.3.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f9412aaece558918e8cff2bef9065baeadcb50076d450102b9da5cd863ecaac6
BLAKE2b-256 checksum
How to use checksums
2f5b081d77b9428d646ed8a16bcfe620c32719e31772428776d72f4b8706fc5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1

Release files / tigrex-1.3.0-py3-none-any.whl

Download URL tigrex-1.3.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
469b2f1b86a90a1639aaa55d0f24092d6907ee8f3ad349a4da6964d84b7376eb
BLAKE2b-256 checksum
How to use checksums
12f54425ca15e46567e32fd1b43fd1df55f35d68c279fc6a611858d346f5f5c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.1

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page