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.1a8.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9210f796d3b4835d83dde7e6dd66f13a97d93b6a96a8c50d103399e4fc9af53 |
|
MD5 | 6f4b5f90d7a4df133e6ece38ae2b0a53 |
|
BLAKE2b-256 | 37242c2bc6fe7b40dac099e76afd22599bde5e04c08c6248c019756e164f9d20 |