A Python library for parsing CS2 (Counter-Strike 2) demo files. It provides fast, low-level access to demo tick data including events, player positions, and game state. Current version: 0.41.2. Weekly releases on PyPI.
pip install demoparser2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parse events and tick data from a CS2 demo file.
Update code to match new API. Review changelog on GitHub for migration details.
Replace parser.parse_demo() with parser.parse_events(...) and parser.parse_ticks(...).
Use the 'events' and 'ticks' parameters to limit data; parse only what you need.
Verify the file path. Use an absolute path or ensure the relative path is correct.
Use correct import: from demoparser2 import DemoParser