Installation¶
Requirements¶
- Python 3.11 or higher
- No heavy dependencies
Install from PyPI¶
Optional: RE2 regex acceleration¶
For 10-100x faster regex matching on large rule sets, install with RE2 support:
RE2 is entirely optional — Crossfire works fine without it using Python's stdlib re module.
How it works: RE2 uses a Thompson NFA engine instead of backtracking, which is dramatically faster for most patterns. Crossfire tries RE2 first for each pattern, and automatically falls back to stdlib re for patterns that use PCRE-only features (backreferences, lookahead, lookbehind). No configuration needed.
When it helps most: Large rule sets (100+ rules) with high sample counts. The regex matching step in the evaluator is the bottleneck, and RE2 accelerates it directly.
Optional: Rich tables¶
For enhanced terminal table output:
Install from source¶
For development (includes test and lint tools):