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.1a11.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b6ab81c6065603e59f6515d442783bc089f89f5cea3feca0db4f87a59ad9a78 |
|
MD5 | 4a95bdac7a34ae93459486f547b9839b |
|
BLAKE2b-256 | c7e99943e8746fa5c5189b93f9b80a8144433ca23916ed6c76020854fe31225a |