Skip to main content

MTG-Card-API

# Use the Scryfall module
from mtg_card_api import ScryfallAPI

api = ScryfallAPI()
res = api.get_card_by_name("Sacred Foundry")

# Check if response encountered an error
if res.error is False:
    # Otherwise response prop will contain result string
    print(res.response) 
# {"object":"card","id":"8076a8c3-7c6c-4636-b5d8-9b09ee95f92c","oracle_id":"45181cb8-2090-4471-ba90-e5a8f04d525f","multiverse_ids":[643292],"mtgo_id":121137,"tcgplayer_id":517644,"cardmarket_id":748638,"name":"Sacred Foundry"...,"cardhoarder":"https://www.cardhoarder.com/cards/121137?affiliate_id=scryfall&ref=card-profile&utm_campaign=affiliate&utm_medium=card&utm_source=scryfall"}}

Default values for module will cache the result for 24hrs in $XDG_HOME/.cache/MTGScryfallAPI using diskcache

Requirements

  • rest_client_micro

Installation

pip install mtg_card_api

Metadata

Release files for mtg-card-api 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mtg-card-api 0.1.6
File Size Uploaded Provenance
mtg_card_api-0.1.6.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mtg-card-api 0.1.6
File Interpreter ABI Platform
mtg_card_api-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / mtg_card_api-0.1.6.tar.gz

Download URL mtg_card_api-0.1.6.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a6e5c51f2273236674b1d782af7e667a5e4c719ea647f01372e76e0fcc32f676
BLAKE2b-256 checksum
How to use checksums
c825d6df2ef28109aab240106f545170adb6be32e54232822cb3c8489e40b553
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / mtg_card_api-0.1.6-py3-none-any.whl

Download URL mtg_card_api-0.1.6-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89c35c61adddc7f715e55391908d3878511f00185e7d053be4cd94d476bdd9ba
BLAKE2b-256 checksum
How to use checksums
6f882703d55750f2d7443b7dc17bdfc04632502ff81808b487e597cd494ec997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.4

Security for mtg-card-api 0.1.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page