pyMTGJSon
A small python library designged to ease to write scripts/apps that use data from mtgjson.com.
Example use
>>> from mtgjson import CardDb
>>> db = CardDb.from_url()
>>> card = db.find_card_by_name(u'aether vial')
>>> card.name
u'\xc6ther Vial'
>>> print card.name
Æther Vial
>>> card.cmc
1
>>> 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
'http://mtgimage.com/set/MMA/aether vial.jpg'
See the documentation at http://pythonhosted.org/mtgjson for more.
Metadata
Release files for mtgjson 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mtgjson-0.4.0.tar.gz | 3.6 kB | Without provenance | Details for mtgjson-0.4.0.tar.gz |
Release files / mtgjson-0.4.0.tar.gz
| Download URL | mtgjson-0.4.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b6fd03bd166a59ac4b601573b1a4468bdc66c10ba933e6f41125ab34582137c
|
|
BLAKE2b-256 checksum How to use checksums |
bd34ac7612113d2c3deac7ab775f98d5dc7803016a19cd91c562ed22b7a9b8da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mtgjson 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.