A pure Python parser for Windows event log files (.evtx). Version 0.8.1 supports Python >=3.9, provides XML and JSON dump functionality, and extracts event records from EVTX files. Maintenance is active with occasional releases.
pip install python-evtxVerified import paths — ran on the pinned version, not inferred.
Open an EVTX file and iterate over records; each record contains 'event_data' (XML string) and 'data' (raw string when JSON not available).
Upgrade python-evtx to v0.8.1 and use Python >=3.8.
Use correct import: from evtx import Evtx or from evtx import PyEvtxParser
Iterate over parser.records() instead of list(parser.records()) for large files.
Install lxml via pip to ensure full XML support.