Python utility that leverages Windows APIs / WMI to look up and display hard drive metadata
Must be run with admin privileges
- curses
- dataclasses
- typing
- struct
- uuid
- functools
- win32com.client (from pywin32)
- win32api (from pywin32)
- win32con (from pywin32)
- win32file (from pywin32)
- winioctlcon (from pywin32)
- pyperclip
- Volume (dataclass)
- Partition (dataclass)
- Disk (dataclass)
- System (dataclass)
- get_wmi_service()
- get_known_partition_type()
- get_disk_type()
- parse_partition_data()
- get_bitlocker_status()
- get_partition_hex_data()
- get_volume_info()
- get_partition()
- get_partitions()
- get_disks()
- get_system_info()
- create_windows()
- display_drive_selection()
- display_partition_info()
- copy_partition_info_to_clipboard()
- main()
- Python Version: 3.6+ (due to use of dataclasses)
- pywin32 Version: Compatible with the latest version as of August 2024
- pyperclip Version: Compatible with the latest version as of August 2024
- Operating System: Windows (due to use of Win32 API)
- Architecture: Compatible with both 32-bit and 64-bit systems
- This script is designed to run on Windows systems only, as it relies heavily on Windows-specific APIs and WMI queries.
- Administrative privileges may be required to access certain disk and partition information.
- The script uses a text-based user interface (TUI) implemented with the curses library.
- Clipboard functionality is provided through the pyperclip library.
- The script accesses low-level system information, which may require elevated privileges.
- Care should be taken when distributing or running this script, as it has the capability to read sensitive system information.
- The core Python libraries and win32 extensions are subject to their respective licenses.
- pyperclip is typically distributed under the BSD License.
- The custom code in this script should be licensed according to the project's requirements.