Python enum for NTSTATUS codes from the Windows API (ntstatus.h). Allows comparison to both signed and unsigned integers. Version 2.0 dropped Python 3.9 support. Maintained on GitHub.
pip install ntstatusNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage of NTSTATUS enum: instantiation, comparison, and name lookup.
Upgrade Python to 3.10+ or pin ntstatus==1.0 for Python 3.9.
Replace `from ntstatus.constants import ...` with `from ntstatus.status import ...`.
Always use NTSTATUS(value) or compare against NTSTATUS constants; avoid raw int comparisons unless you understand the sign handling.