Awpy
Awpy (GitHub) allows a user to parse, analyze and visualize Counter-Strike 2 demos, specifically those from competitive Counter-Strike (e.g., demos from HLTV, FACEIT, and competitive matchmaking). To install Awpy, run pip install awpy (Python >= 3.11). Please join the Discord server if you would like to discuss Awpy or esports analytics. You can get started with the following example:
from awpy import Demo
# Construct and then parse a demo
dem = Demo("natus-vincere-vs-virtus-pro-m1-overpass.dem")
dem.parse()
# Access various dictionaries & Polars dataframes
dem.header
dem.rounds
dem.grenades
dem.kills
dem.damages
dem.bomb
dem.smokes
dem.infernos
dem.shots
dem.ticks
# If you need to change to a Pandas dataframe, you can do
dem.ticks.to_pandas()
You can take a look at the Parsing a Counter-Strike 2 Demo to see how to parse a demo and access the data.