forked from mtgatracker/python-mtga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-power-and-toughness
- Loading branch information
Showing
4 changed files
with
47 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
# Python MTGA | ||
|
||
MTGA tools & set data for python. Generated with MTGJSON and scryfall, original MTGA grpId's | ||
collected by Fugi & Spencatro. | ||
|
||
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 | ||
|
||
```python | ||
from mtga.set_data import all_mtga_cards | ||
print(all_mtga_cards.find_one("63773")) | ||
# <Card: 'Torrential Gearhulk' ['Blue'] KLD 63773> | ||
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: | ||
|
||
```bash | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* # check for readme issues (e.g. line endings MUST BE LF, not CRLF lol) | ||
twine upload dist/MTGA-<version>* | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.9.3" | ||
__version__ = "0.9.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters