Skip to main content

Magic: the Gathering deckstats

Project description

mtg-deckstats

PyPI PyPI - Python Version GitHub

How to install

pip install mtg-deckstats

Quick Start

Generate a deckstats report using the following steps:

import mtg_deckstats

report = mtg_deckstats.compute('<decklist url>')
print(report)

To speed things up, you can also compute reports with a pre-generated cache using the following steps:

import mtg_deckstats

cache = mtg_deckstats.pre_cache()

report_1 = mtg_deckstats.compute('<decklist url 1>', data=cache)
print(report_1)

report_2 = mtg_deckstats.compute('<decklist url 2>', data=cache)
print(report_2)

Supported deckbuilding websites

Internally mtg_deckstats relies on mtg_parser and thus, supports the following deckbuilding websites:

  • aetherhub.com
  • archidekt.com
  • deckstats.net
  • moxfield.com
  • mtggoldfish.com
  • scryfall.com
  • tappedout.net
  • tcgplayer.com

Project details


Download files

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

Source Distribution

mtg_deckstats-0.0.1a8.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

mtg_deckstats-0.0.1a8-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file mtg_deckstats-0.0.1a8.tar.gz.

File metadata

  • Download URL: mtg_deckstats-0.0.1a8.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.1 Darwin/21.6.0

File hashes

Hashes for mtg_deckstats-0.0.1a8.tar.gz
Algorithm Hash digest
SHA256 6bca3e19644254218ec8951a43b1bcbf945b374071cf743e7f219e822fa37894
MD5 d9ecd04a99103a9adc33ad476ed1b379
BLAKE2b-256 7575af28d9cdb6f58a1389ea2ec0802d96996072db6331ba490f417d41dc2b0f

See more details on using hashes here.

File details

Details for the file mtg_deckstats-0.0.1a8-py3-none-any.whl.

File metadata

  • Download URL: mtg_deckstats-0.0.1a8-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.9.1 Darwin/21.6.0

File hashes

Hashes for mtg_deckstats-0.0.1a8-py3-none-any.whl
Algorithm Hash digest
SHA256 5851b59bcecedd2a9fa8918d8daf655d8d6d110e83ce0ecaaa6bb87685ca7caf
MD5 5b048ab25e99f2d715d25de1ce5f90d4
BLAKE2b-256 691b17dc0f5d25136814b2fa4acc7847ea4d064dc33113a14b124857a0329102

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page