Skip to main content

Decode and show Hearthstone deck or compare two decks

Project description

Black

hsdecks

Decode and show Hearthstone deck or compare two decks.

It uses python-hearthstone deckstring parser to decode the deck and HearthstoneJSON cards definitions to build a simple cards database - this is done automatically on the first execution.

If a single deck code is passed as argument, the entire deck is show.

To compare two decks just pass two deck codes as arguments.

Multiple languages are supported, just use the ‘-l’ switch. See example below and usage for a list of supported languages.

Show deck example:

$ hsdecks AAECAea5AwSKB8y6A8O8A9rGAw35rgOLugO9uwPXuwPEvAPgvAO6xgPHxgPZxgPXyAP3yAP5yAP+yAMA

CLASS: DEMONHUNTER
TYPE: STANDARD

  MANA  RARITY       QTY  NAME
------  ---------  -----  ----------------------
     0  COMMON         2  Twin Slice
     1  COMMON         2  Blazing Battlemage
     1  COMMON         2  Crimson Sigil Runner
     1  COMMON         2  Battlefiend
     2  FREE           1  Acidic Swamp Ooze
     2  COMMON         2  Umberwing
     2  FREE           2  Chaos Strike
     3  EPIC           2  Eye Beam
     3  FREE           2  Satyr Overseer
     4  LEGENDARY      1  Altruis the Outcast
     4  LEGENDARY      1  Kayn Sunfury
     4  RARE           2  Raging Felscreamer
     5  LEGENDARY      1  Metamorphosis
     5  EPIC           2  Warglaives of Azzinoth
     5  FREE           2  Glaivebound Adept
     6  RARE           2  Skull of Gul'dan
     7  RARE           2  Priestess of Fury

DUST: 7400

Compare decks example:

$ hsdecks AAECAea5AwSKB8y6A8O8A9rGAw35rgOLugO9uwPXuwPEvAPgvAO6xgPHxgPZxgPXyAP3yAP5yAP+yAMA AAECAea5AwTMugPDvAONvQPaxgMNlwaLugPXuwPEvAPgvAO6xgPHxgPZxgPVyAP3yAP5yAP+yAPyyQMA

DECK DIFFERENCES
----------------

DECK 1
------

CLASS: DEMONHUNTER
TYPE: STANDARD

  MANA  RARITY      QTY  NAME
------  --------  -----  ------------------
     1  COMMON        2  Blazing Battlemage
     2  FREE          1  Acidic Swamp Ooze
     4  RARE          2  Raging Felscreamer
     7  RARE          2  Priestess of Fury

DECK 2
------

CLASS: DEMONHUNTER
TYPE: STANDARD

  MANA  RARITY      QTY  NAME
------  --------  -----  -------------------
     1  COMMON        2  Mana Burn
     2  FREE          1  Sightless Watcher
     2  COMMON        2  Spectral Sight
     3  RARE          2  Questing Adventurer

Show deck in ptBR:

$ hsdecks AAECAea5AwSKB8y6A8O8A9rGAw35rgOLugO9uwPXuwPEvAPgvAO6xgPHxgPZxgPXyAP3yAP5yAP+yAMA -l ptbr

CLASS: DEMONHUNTER
TYPE: STANDARD

  MANA  RARITY       QTY  NAME
------  ---------  -----  -----------------------------
     0  COMMON         2  Talho Duplo
     1  COMMON         2  Maga de Batalha Fulgurante
     1  COMMON         2  Emissário do Signo Carmesim
     1  COMMON         2  Carnífice de Batalha
     2  FREE           1  Gosma Ácida do Pântano
     2  COMMON         2  Asumbra
     2  FREE           2  Golpe do Caos
     3  EPIC           2  Raio Ocular
     3  FREE           2  Feitor Sátiro
     4  LEGENDARY      1  Altruis, o Proscrito
     4  LEGENDARY      1  Kayn Solfúria
     4  RARE           2  Bradovil Enraivecida
     5  LEGENDARY      1  Metamorfose
     5  EPIC           2  Glaives de Guerra de Azzinoth
     5  FREE           2  Adepto da Glaive Jurada
     6  RARE           2  Crânio de Gul'dan
     7  RARE           2  Sacerdotisa da Fúria

DUST: 7400

Notes

  • Works on Python 3

  • Tested on Linux and Windows but should work on all platforms

Install

Install using pip:

pip install hsdecks

Usage

usage: hsdecks [-h] [-l LANG] [-u | -r] [-v] [deck [deck ...]]

decode and show hearthstone deck or compare two decks

positional arguments:
    deck

optional arguments:
    -h, --help            show this help message and exit
    -l LANG, --lang LANG  language of the card name: deDE, enUS, esES, esMX,
                          frFR, itIT, jaJP, koKR, plPL, ptBR, ruRU, thTH, zhCN
                          or zhTW (default: enUS)
    -u, --update          check online for cards definitions and update database
                          if needed
    -r, --recreate        download cards definitions and recreate database
    -v, --version         show program's version number and exit

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

hsdecks-0.2.1.tar.gz (7.0 kB view hashes)

Uploaded Source

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