BoonΒΆ
from boon import Demo
demo = Demo("match.dem", preload=False)
demo.load("kills", "damage")
print(demo.players)
print(demo.kills.head())
demo.kills.write_parquet("kills.parquet")
Boon parses Valve Deadlock Source 2 .dem files with Rust and PyO3.
Python results are Polars DataFrames. Use Polars for filters,
groups, joins, and Apache Parquet output. Optional plots use matplotlib.
Demo compatibility: Use Boon 0.10.0 or earlier for demos recorded before the City Never Sleeps update (September 29, 2026). Use Boon 0.11.0 or later for demos recorded with that update or later.
Get startedΒΆ
Install with uv add boon-deadlock or pip install boon-deadlock.
Read π Getting Started for dataset queries and π Examples for complete examples.
Use Calculate hero stats for hero values, Ability stats and imbues for ability bonuses and imbues, and Player states for recorded states. Set a boon-data version for these queries; see Game data downloads. The guides list accepted strings and enum members.
Use Ziplines for recorded zipline routes and ownership. Use Plotting for scoreboards, team totals, and player positions. Read Known Issues for calculation limits. Report errors on GitHub or Discord.
Use the llms.txt index for plain-text guides and typed API references.
Useful linksΒΆ
Deadlock β official home page
r/DeadlockTheGame β Reddit community
- π Getting Started
- Boon Python requirements
- Install Boon for Python
- Parse a Deadlock demo with Boon Demo
- Read sampled player and world state with Boon
- Read Boon combat and item events
- Read Boon objectives and map state
- Filter Boon DataFrames with Polars
- Query Boon stats, states, and imbues
- Resolve Boon item upgrade components
- Handle Boon parsing errors
- π Examples
- Resolve Boon hero, ability, and modifier names
- Query Boon stats, states, and ammo
- Read Boon healing and barrier absorption totals
- Read the Boon post-match summary
- Build a Boon kill feed with Polars
- Read Boon player souls over time
- Group Boon damage events with Polars
- Read Boon item purchase order
- Read Boon item upgrade links
- Read Boon current player upgrades
- Read Boon enemy minimap icons
- Read Boon objective state changes
- Select Boon positions for matplotlib
- Read Boon modifier events and names
- Read Boon Street Brawl round scores
- π API Reference
- π» CLI
- Game data downloads
- Plotting
- Calculate hero stats
- Select boon-data for hero calculations
- Calculate hero stats with Boon Demo.calculate_hero_stats
- Select baseline or current Boon stat effects
- Select Boon stat ticks and Steam IDs
- Read Boon StatResult tables
- Read shared Boon stat inputs
- Weapon damage
- Ammo equation
- Bullet velocity equation
- Falloff range
- Melee damage
- Melee distance bonus
- Reload time
- Fire-rate increase or decrease
- Slide distance, bullet evasion, and gravity scale
- Stamina and ordinary dashes
- Move speed and sprint speed
- Debuff resistance
- Damage resistance
- Lifesteal
- Unresolved inputs
- Calculate hero stats with the Boon Rust API
- Ability stats and imbues
- Calculate ability bonuses and read imbues with Boon
- Select Boon ability ticks, Steam IDs, and ability IDs
- Select baseline or current Boon ability effects
- Read Boon ability and imbue result tables
- Boon ability bonus names and V1 rules
- Boon ability source evidence and limits
- Calculate ability bonuses with the Boon Rust API
- Player states
- Ziplines
- Replay verification checklist
- Performance benchmarks
- β FAQ
- Where do I get demo files?
- Why does Boon return Polars DataFrames instead of pandas?
- Why do DataFrames use integer IDs instead of names?
- How do I see what datasets are available?
- What is the difference between a property and
load()? - Why is
player_ticksmissing some heroes? - Are old demos supported?
- What is
trooper_boss? - How do I work with street brawl demos?
- How do I convert a tick to a timestamp?
- What does
damageinclude? - Can I use Boon without Python?
- Something is not working. Where do I report it?
- Known Issues
- Stat calculations
- Spirit power and modifier bindings
- Client 6712 stat inputs
- Ammo and barrier snapshots
- Battle Vest health condition
- Weapon damage coverage
- Melee damage coverage
- Movement and evasion stat coverage
- Stamina and dash stat coverage
- Move and sprint speed coverage
- Damage resistance coverage
- Lifesteal coverage
- Debuff resistance coverage
- Barrier pool snapshots are not grant events
- Recorded stat bonuses
- Banned heroes are frequently missing
- Item upgrade links
- Ability bonuses and Arcane Surge
- Modifier lifetimes
- Urn returns
- Low-level format limits
- π§ Reference
- π¬ Demo File Internals
- π Roadmap
- π€ Contributors
- Changelog