Registry / devops / winevt

winevt

JSON →
library0.0.11pypypiunverified

A Python library for programmatically interfacing with Windows Event Log. Version 0.0.11; low release cadence.

pip install winevt
INSTALL
IMPORT
SIG · WINEVT
W
winevt
devopspythonv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WinEventLog
from winevt import WinEventLog
from winevt import WinEvtLog
Spelling of class name: WinEventLog, not WinEvtLog
EventQuery
from winevt import EventQuery

Query Windows Security event log and print event IDs.

from winevt import WinEventLog log = WinEventLog('Security') log.open() for event in log: print(event.EventID, event.TimeGenerated)
Debug
Known issues
gotchaThe library requires Windows; it will not install or run on Linux/macOS.
fix
Only use on Windows systems or Windows compatibility layers like Wine.
affects: all
deprecatedSome features rely on pywin32; ensure it is installed separately on Python 3.12+ as it is no longer bundled.
fix
Run 'pip install pywin32' if you encounter ImportError for win32api.
affects: >=0.0.10
breakingAPI breaking change in 0.0.10: 'open()' method now returns a context manager; old 'log.open()' without 'with' may cause resource leaks.
fix
Use 'with log.open():' or call 'log.close()' explicitly.
affects: >=0.0.10
Upgrade
Version history
0.0.11latest on PyPI · released May 10, 2017
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
winevt — pip install winevt · libregistry