python-mtga: a python-accessible interface for MTGA cards
Project description
Python MTGA
MTGA tools & set data for python. Original cardset generated with MTGJSON and scryfall, with initial set of MTGA grpId's collected by Fugi & Spencatro. (Now we just use the data already present in your MTGA installation.)
Installation
pip install mtga
or
python setup.py install
Usage
from mtga.set_data import all_mtga_cards
print(all_mtga_cards.find_one("Mangara"))
# <Card: 'Mangara, the Diplomat' ['White'] M21 71809>
print(all_mtga_cards.find_one(71809))
# <Card: 'Mangara, the Diplomat' ['White'] M21 71809>
print(all_mtga_cards.find_one("71809"))
# <Card: 'Mangara, the Diplomat' ['White'] M21 71809>
Deploying
Because I always forget:
python setup.py sdist bdist_wheel
twine upload dist/MTGA-<version>*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MTGA-0.9.5.tar.gz.
File metadata
- Download URL: MTGA-0.9.5.tar.gz
- Upload date:
- Size: 240.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1230cdde6b56d4f0d582ad82eeb6f0aa50e6c6c2206518c84240bcda4cc0d41
|
|
| MD5 |
7479f0e5d627ea08cd319f87c016119a
|
|
| BLAKE2b-256 |
643b866660afef433337fdc6f842209193a6d9df23f6bfc8221251ab7f860439
|
File details
Details for the file MTGA-0.9.5-py3-none-any.whl.
File metadata
- Download URL: MTGA-0.9.5-py3-none-any.whl
- Upload date:
- Size: 247.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc0b8f07a3451f32b39d57f862734a2f6fb0f89537c965124db513ce44d62bc2
|
|
| MD5 |
b8c11150544f97fa6eff2b33ef48163b
|
|
| BLAKE2b-256 |
af433e7fcbd43b3a5b30108c981b0e54369b5b232d73c118610f4f1d834460f1
|