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:
| Guide | What you will learn |
|---|---|
| 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 |