csgo-demoparser
is a library for parsing CS:GO demo files.
As the file is processed events are emitted for which callbacks can be registered.
Install:
pip install csgo-demoparser
Parse a demo:
>>> from demoparser.demofile import DemoFile >>> data = open('/path/to/demofile', 'rb').read() >>> df = DemoFile(data) >>> df.parse()