Skip to main content

A python library for working with data from

Project description

A small python library designged to ease to write scripts/apps that use data from

Example use

>>> from mtgjson import CardDb
>>> db = CardDb.from_url()
>>> card = db.find_card_by_name(u'aether vial')
u'\xc6ther Vial'
>>> print
Æther Vial
>>> card.cmc
>>> card.text
u'At the beginning of your upkeep, you may put a charge counter on \xc6ther Vial.\n{T}: You may put a creature card with converted mana cost equal to the number of charge counters on \xc6ther Vial from your hand onto the battlefield.'
>>> card.img_url
' vial.jpg'

See the documentation at for more.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mtgjson-0.4.0.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page