Magic: the Gathering decklist parser
Project description
mtg-parser
How to install
pip install mtg-parser
How to use
import mtg_parser
decklist = """
1 Atraxa, Praetors' Voice
1 Imperial Seal
1 Lim-Dûl's Vault
1 Jeweled Lotus (CMR) 319
1 Llanowar Elves (M12) 182
3 Brainstorm #Card Advantage #Draw
"""
cards = mtg_parser.parse_deck(decklist)
for card in cards:
print(card['quantity'], card['card_name'])
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
mtg_parser-0.0.1a9.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 187849806b194f1abfeed6b6b4151dc4be754116906f482c49f1b6ca11e38f90 |
|
MD5 | 096cb5ea28c845b300376e0ab93d3b66 |
|
BLAKE2b-256 | fd07553f17b3180ff9e59fc45f13f2502c7c1bb76ab9fe1931e18b54e8ed4a2c |