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.1a12.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d49d4f7c90ecc44c4d9ec52a02cd2e0f91dee87d4f018f0f70ba104e798908b |
|
MD5 | 09d57b1675f86e6b5e2abe54f805668f |
|
BLAKE2b-256 | 40dd279f464314aba5495e5877be59142a8d350dd8b5a6a6b06b9b7e3903b6ec |