API Reference¶
Core functionality for getting hardware IDs.
get_hwid()
¶
Get the hardware ID of the current machine.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The hardware ID string. |
Raises:
Type | Description |
---|---|
UnsupportedOSError
|
If the operating system is not supported. |
InvalidHWIDError
|
If the retrieved hardware ID is invalid. |
Source code in hwid/core.py
validate_hwid(value)
¶
Validate if a string matches the HWID format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
str
|
The string to validate. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if valid, False otherwise. |