Script for generating Hearthstone card spoilers & checklists

Overview

This is a script for generating text spoilers and set checklists for Hearthstone.

Installation & Running

Python 3.6 or higher is required.

  1. Copy/clone the code to your computer

  2. In this directory, run python3 -m pip install --user -r requirements.txt (Requires pip)

  3. Run the code by running python3 -m hscards ... in this directory. (There are other possible ways to run the code, but let's just stick to one simple method here.)

Usage

By default, all commands fetch card data from https://hearthstonejson.com — specifically, https://api.hearthstonejson.com/v1/latest/enUS/cards.collectible.json. The c/--cards-file option can be used to specify a different file or URL in the same format to use instead.

spoiler command

python3 -m hscards [-c 
   
    ] spoiler [-I] [-o 
    
     ]

    
   

Generate a file of text spoilers for all collectible Hearthstone cards. The spoilers look like this:

Name:   Explosive Trap
Type:   Spell — Secret
Cost:   2
Class:  Hunter
Text:   Secret: When your hero is attacked, deal 2 damage to all
          enemies.
Set:    Classic (Common)
Flavor: It traps your food AND cooks it for you!
Artist: Brandon Kitkouski

If the -I/--show-ids option is specified, the spoilers will also include each card's ID.

By default, the spoilers are written to cards.txt; the -o/--outfile option can be used to specify a different file.

checklists command

python3 -m hscards [-c 
   
    ] checklists [-d 
    
     ] [-f 
     
      ] [--full-names] [
      
        ...]

      
     
    
   

Generate checklists for each collectible Hearthstone card set (either all sets or just those listed on the command line), one file per set. Files are created in the directory specified with the -d/--output-dir option (default: checklists) and are named either with each set's internal codename (e.g., the Basic set is CORE.txt and the Classic set is EXPERT1.txt) or, if the --full-names option is given, with each set's full display name (e.g., Basic.txt and Classic.txt). The checklist file format can be set with the -f/--format option: either txt (the default) or pdf.

Owner
John T. Wodder II
John T. Wodder II
DUQ is a python package for working with physical Dimensions, Units, and Quantities.

DUQ is a python package for working with physical Dimensions, Units, and Quantities.

2 Nov 02, 2022
Python Classes Without Boilerplate

attrs is the Python package that will bring back the joy of writing classes by relieving you from the drudgery of implementing object protocols (aka d

The attrs Cabal 4.6k Jan 06, 2023
Compute the fair market value (FMV) of staking rewards at time of receipt.

tendermint-tax A tool to help calculate the tax liability of staking rewards on Tendermint chains. Specifically, this tool calculates the fair market

5 Jan 07, 2022
A tool to create the basics of a project

Project-Scheduler Instalação Para instalar o Project Maker, você necessita está em um ambiente de desenvolvimento Linux ou wsl com alguma distro debia

2 Dec 17, 2021
A script copies movie and TV files to your GD drive, or create Hard Link in a seperate dir, in Emby-happy struct.

torcp A script copies movie and TV files to your GD drive, or create Hard Link in a seperate dir, in Emby-happy struct. Usage: python3 torcp.py -h Exa

ccf2012 105 Dec 22, 2022
Prime Path Generator is a prime path generator used to generate prime paths.

Prime Path Generator is a prime path generator used to generate prime paths.

1 Nov 06, 2021
Python implementation of Gorilla time series compression

Gorilla Time Series Compression This is an implementation (with some adaptations) of the compression algorithm described in section 4.1 (Time series c

Ghiles Meddour 19 Jan 01, 2023
This is a python table of data implementation with styles, colors

Table This is a python table of data implementation with styles, colors Example Table adapts to the lack of data Lambda color features Full power of l

Урядов Алексей 5 Nov 09, 2021
Format Norminette Output!

Format Norminette Output!

7 Apr 19, 2022
Michael Vinyard's utilities

Install vintools To download this package from pypi: pip install vintools Install the development package To download and install the developmen

Michael Vinyard 2 May 22, 2022
A simple example for calling C++ functions in Python by `ctypes`.

ctypes-example A simple example for calling C++ functions in Python by ctypes. Features call C++ function int bar(int* value, char* msg) with argumene

Yusu Pan 3 Nov 23, 2022
Tool to produce system call tables from Linux source code.

Syscalls Tool to generate system call tables from the linux source tree. Example The following will produce a markdown (.md) file containing the table

7 Jul 30, 2022
Shypan, a simple, easy to use, full-featured library written in Python.

Shypan, a simple, easy to use, full-featured library written in Python.

ShypanLib 4 Dec 08, 2021
[P]ython [w]rited [B]inary [C]onverter

pwbinaryc [P]ython [w]rited [Binary] [C]onverter You have rights to: Modify the code and use it private (friends are allowed too) Make a page and redi

0 Jun 21, 2022
Spacegit is a .git exposed finder

Spacegit Spacegit is a basic .git exposed finder Usage: You need python3 installed to run spacegit use: python3 spacegit.py (url) Disclaimer: **This i

2 Nov 30, 2021
A BlackJack simulator in Python to simulate thousands or millions of hands using different strategies.

BlackJack Simulator (in Python) A BlackJack simulator to play any number of hands using different strategies The Rules To keep the code relatively sim

Hamid 4 Jun 24, 2022
Python based tool to extract forensic info from EventTranscript.db (Windows Diagnostic Data)

EventTranscriptParser EventTranscriptParser is python based tool to extract forensically useful details from EventTranscript.db (Windows Diagnostic Da

P. Abhiram Kumar 24 Nov 18, 2022
SysInfo is an app developed in python which gives Basic System Info , and some detailed graphs of system performance .

SysInfo SysInfo is an app developed in python which gives Basic System Info , and some detailed graphs of system performance . Installation Download t

5 Nov 08, 2021
🚧Useful shortcuts for simple task on windows

Windows Manager A tool containg useful utilities for performing simple shortcut tasks on Windows 10 OS. Features Lit Up - Turns up screen brightness t

Olawale Oyeyipo 0 Mar 24, 2022
Random Number Generator

Application for generating a random number.

Michael J Bailey 1 Oct 12, 2021