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.1a10.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for mtg_parser-0.0.1a10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6c4b6d0c88189bf4a83f0af43d84750fe938ed65ebdf528671eae4e640bb7ea |
|
MD5 | 183488b41342d64520b611615d9913ed |
|
BLAKE2b-256 | 47356d12d286d0ea36440f049fd152e0d93ea0e9a46ff2482b90d46554e50f83 |