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".


If you want parser internals first

Parser internals now live in a dedicated section:

  1. Bits & Bytes Primer
  2. Deep Dives

GuideWhat you will learn
Entity StateSubscribe to entity events and read field values
Combat LogFilter events, count damage, track kills and wards
Full Match DataWalk through everything in ParsedMatch
Time-Series & DataFramesPer-minute gold/XP curves and pandas export
Teamfight Detectionmatch.teamfights — windows, participants, stats
Laning AnalysisLane role classification, lane efficiency %, gold/XP advantage
CLI Referenceparse and batch subcommands, all flags, Python API equivalents
Annotated JSON OutputReal TI14 replay output explained field by field
Custom ExtractorsAttach parser callbacks to build your own outputs