Skip to main content

Dota 2 hero grid generator using OpenDotaAPI stats

Project description

ODHeroGrid

logo

Small script that generates a custom Dota 2 Hero Grid layout of heroes sorted by winrate in public or professional games, using stats from OpenDota.

Installation

pip install odherogrid

Usage

Usage:
  odhg [OPTIONS]

Options:
  [-b, --brackets] BRACKET (default: 7)
    Which skill bracket to get winrates from.
      <1, herald, h>                          Herald
      <2, guardian, g>                        Guardian
      <3, crusader, c>                        Crusader
      <4, archon, a>                          Archon
      <5, legend, l>                          Legend
      <6, ancient, n>                         Ancient
      <7, divine, d, immortal, i>             Divine
      <8, pro, p, official, tournaments>      Pro
      <0, all, A>                             All
    Hero grids for multiple brackets can be generated by specifying the -b option several times.

  [-g, --grouping] GROUPING (default: 1)
    How heroes should be grouped in the grid
      <1, mainstat, m, stat, stats>           Mainstat
      <2, attack, a, melee, range>            Attack
      <3, role, r>                            Role
      <0, none, n, all, everything>           None

  [-p, --path] PATH
    Specify absolute path of Dota 2 userdata/cfg directory.
    (It's usually better to run --setup to configure this path.)

  [-s, --sort] (flag)
    Sort heroes by winrate in ascending order. (Default: descending).

  [-S, --setup] (flag)
    Runs first-time setup in order to create a persistent config.

  [-n, --name] NAME
    Sort heroes by winrate in an already existing custom hero grid.

  [-h, --help] (flag)
    Show this message and exit.

Examples

Use options stored in config. (Runs first-time setup if no config exists)

odhg

The config file will be stored as ~/.odhg/config.yml

It is recommended to create a config rather than using command-line options.

Bracket

Create grid for Herald hero winrates:

odhg --brackets 1

Bracket names can also be used:

odhg --brackets herald

Shorter:

odhg -b h

Create grids for Herald, Divine & Pro winrates:

odhg -b 1 -b 7 -b 8

Alternatively:

odhg -b h -b d -b p

Create grids for all brackets:

odhg -b 0

Grouping

Create grids for Divine hero winrates, grouped by Hero roles (Carry/Support/Flex):

odhg -g 3 -b 7

Name of grouping method can also be used:

odhg -g role -b 7

Path

Specify a specific Steam user CFG directory:

odhg --path /home/bob/Steam/userdata/420666/570/remote/cfg

Sort custom grids with --name

odhg --name MyCustomGrid -b 7

Before:

Before

After:

After

Screenshots

Divine Winrates Divine winrate hero grid generated 2020-01-26

Changelog

The format is based on Keep a Changelog,

0.1.2 (January 24th, 2020)

Added

  • Sorting of specific custom grids by using the --name parameter

Changed

  • ~/.odhg/config.yml now lists full path of hero_grid_config.json instead of just its directory.

Project details


Download files

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

Files for odherogrid, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size odherogrid-0.1.2-py3-none-any.whl (17.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size odherogrid-0.1.2.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page