{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/15"}],"enrichment":{"capability":"Provides Python constants and lookup methods for Windows API NTSTATUS, Win32 Error Code, and HRESULT values, with support for comparing values as both signed and unsigned 32-bit integers.","skillfed_tags":["windows-interop","error-codes"],"use_cases":["Decode numeric NTSTATUS values returned by Windows system calls into human-readable constant names for logging or error handling.","Compare Win32 error codes against known constants without manual hex-to-decimal conversion or sign-extension logic.","Look up HRESULT values by numeric code in COM interop or Windows API wrapper code to identify failure reasons.","Build Windows system diagnostics or monitoring tools that need to interpret and report status codes from kernel or system APIs.","Validate or test Windows API wrapper code by checking that returned codes match expected NTSTATUS or Win32 Error constants."],"what_it_does":"ntstatus is a reference library that maps Windows API status codes to Python constants and provides bidirectional lookup methods. It defines three main classes\u2014NtStatus, Win32Error, and HResult\u2014each exposing a complete or near-complete set of named constants from the Windows API documentation. Each constant is represented as a ThirtyTwoBits object that can be compared to integers using either their signed or unsigned interpretation, solving the common problem of matching numeric error codes returned by Windows APIs to their symbolic names.\n\nThe library is designed for developers working with ctypes, pywin32, or other Windows interop layers who need to decode error codes or check status values against known constants. It has no runtime dependencies and installs cleanly. The package supports Python 3.10 through 3.13 and is licensed under MIT, making it freely usable in any project.","worth_installing":"Yes, if you are writing Windows interop code in Python and need to work with NTSTATUS, Win32 Error, or HRESULT values. The library is lightweight, dependency-free, and solves a real friction point in Windows API integration. However, note that maintenance is aging\u2014the last update was 2025-06-11 with no recent activity, so treat it as stable but not actively developed."},"id":"ntstatus","links":{"html":"https://skillfed.io/packages/ntstatus","md":"https://skillfed.io/packages/ntstatus.md","pypi":"https://pypi.org/project/ntstatus/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-06-11","license_spdx":"MIT","license_treatment":"permissive","name":"ntstatus","python_support":"supports_current","summary":"Python enum for NTSTATUS from WinAPI, supporting comparision to both signed and unsigned integers"},"popularity":{"monthly_downloads":144527,"position":11149,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0"}
