Skip to content

Guides

Practical how-to guides for using gem's Python API. Each guide assumes gem is installed and you have a Dota 2 .dem replay file to work with.

You can download replays from opendota.com — find any match and click "Download Replay".


Guide What you will learn
Quickstart Install, parse a replay, print KDA and the draft
Troubleshooting Fix common install, parsing, and docs build issues
Entity State Subscribe to entity events and read field values
Combat Log Filter events, count damage, track kills and wards
Full Match Data Walk through everything in ParsedMatch
Time-Series & DataFrames Per-minute gold/XP curves and pandas export
Teamfight Detection match.teamfights — windows, participants, stats
Laning Analysis Lane role classification, lane efficiency %, gold/XP advantage
CLI Reference parse and batch subcommands, all flags, Python API equivalents
Annotated JSON Output Real TI14 replay output explained field by field
Custom Extractors Attach parser callbacks to build your own outputs