Dota 2 hero grid generator using OpenDotaAPI stats
Project description
ODHeroGrid
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:
After:
Screenshots
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.
Source Distribution
odherogrid-0.1.2.tar.gz
(14.4 kB
view hashes)
Built Distribution
odherogrid-0.1.2-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for odherogrid-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37b8a2947c87afca60618cb0ef94f826d6e928446ee9eabc4574b76cef8a3d24 |
|
MD5 | 1dca38099e47c921f483aba5b6692012 |
|
BLAKE2b-256 | 74b7d3de426bb6fca6970201e194abe2b88d9913cc73d2f757e72642a6875b96 |