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.1a13.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d635531140fbafef3cbf7620086f9f356bb19c736e260976d9ef9374eb9d6f8 |
|
MD5 | 4e46e931be5461bc5e7148b83664da55 |
|
BLAKE2b-256 | e6a8a7aacbb61d0b634e75d39202aa193028d44faa5b0ee2bc9b663aa7af3ba1 |