Metadata-Version: 2.1
Name: mtg-parser
Version: 0.0.1a13
Summary: Magic: the Gathering decklist parser
Home-page: https://github.com/lheyberger/mtg-parser
License: MIT
Author: Ludovic Heyberger
Author-email: 940408+lheyberger@users.noreply.github.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: beautifulsoup4 (>=4.9.3,<5.0.0)
Requires-Dist: pyparsing (>=2.4.7,<3.0.0)
Requires-Dist: requests (>=2.25.1,<3.0.0)
Project-URL: Documentation, https://github.com/lheyberger/mtg-parser
Project-URL: Repository, https://github.com/lheyberger/mtg-parser
Description-Content-Type: text/markdown

# 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'])

