python-registry is a pure Python library for reading Windows Registry files (Windows NT, 2000, XP, Vista, 7, 8, 10, etc.). It supports both user and system hives, including registry transaction logs. Current version 1.3.1 is stable; releases are infrequent.
pip install python-registryVerified import paths — ran on the pinned version, not inferred.
Open a registry hive file and list its subkeys.
Ensure you point to a valid hive file path, not a registry key path like 'HKLM\SAM'.
Use RegistryKey.value().name (now str) and RegistryKey.value().raw_data() for the original bytes.
Call find_key on the root key object: reg.root().find_key('SubKey')