SkillAgentSearch skills...

Pymtgjson

Python library for mtgjson.com.

Install / Use

/learn @mbr/Pymtgjson
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pyMTGJSon

A small python library designged to ease to write scripts/apps that use data from mtgjson.com <http://mtgjson.com>_.

Example use

.. code:: python

>>> from mtgjson import CardDb
>>> db = CardDb.from_url()
>>> card = db.cards_by_ascii_name['aether vial']
>>> card.name
'Aether Vial'
>>> print(card.name)
Aether Vial
>>> card.cmc
1
>>> card.text
'At the beginning of your upkeep, you may put a charge counter on Aether Vial.\n{T}: You may put a creature card with converted mana cost equal to the number of charge counters on Aether Vial from your hand onto the battlefield.'
>>> card.img_url
'http://mtgimage.com/set/MMA/aether vial.jpg'

See the documentation at http://pythonhosted.org/mtgjson for more.

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks5

Languages

Python

Security Score

70/100

Audited on Jul 31, 2024

No findings