Detection
provide.foundation.platform.detection
¶
TODO: Add module docstring.
Classes¶
Functions¶
get_arch_name
¶
Get normalized architecture name.
Returns:
| Type | Description |
|---|---|
str
|
Normalized architecture (amd64, arm64, x86, i386) |
Source code in provide/foundation/platform/detection.py
get_cpu_type
¶
Get CPU type/family information.
Returns:
| Type | Description |
|---|---|
str | None
|
CPU type string or None if unavailable |
Source code in provide/foundation/platform/detection.py
get_os_name
¶
Get normalized OS name.
Returns:
| Type | Description |
|---|---|
str
|
Normalized OS name (darwin, linux, windows) |
Source code in provide/foundation/platform/detection.py
get_os_version
¶
Get OS version information.
Returns:
| Type | Description |
|---|---|
str | None
|
OS version string or None if unavailable |
Source code in provide/foundation/platform/detection.py
get_platform_string
¶
Get normalized platform string in format 'os_arch'.
Returns:
| Type | Description |
|---|---|
str
|
Platform string like 'darwin_arm64' or 'linux_amd64' |
Source code in provide/foundation/platform/detection.py
normalize_platform_components
¶
Normalize OS and architecture names to standard format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
os_name
|
str
|
Operating system name |
required |
arch_name
|
str
|
Architecture name |
required |
Returns:
| Type | Description |
|---|---|
tuple[str, str]
|
Tuple of (normalized_os, normalized_arch) |