Metadata-Version: 2.4
Name: turintech_platform
Version: 1.1.2
Summary: Utils for platform information (system and machine architecture)
License-Expression: LicenseRef-Turing-Intelligence-Technology-EULA
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: Other/Proprietary License
Requires-Python: <=3.13,>=3.8
Description-Content-Type: text/markdown

# Platform utilities

Utils related with platform information (system and machine architecture).

### Table of Contents

- [ArchitectureType enumerate](#architecturetype)
- [Platform information](#platform-information)
    - [Platform details](#platform-details)
    - [Platform naming](#platform-naming)

---

## ArchitectureType

Enumerate type of the architecture types detected in this library.

```python
from core_platform.platform_types import PlatformType
from core_platform.platform_utils import get_architecture_type

architecture: PlatformType = get_architecture_type()
# architecture = ArchitectureType.LINUX_x86_64
```

## Platform information

### Platform details

```python
from core_platform.platform_utils import get_platform_info

system, machine, is_64bit = get_platform_info()
# system: str = "linux"
# machine: str = "x86_64"
# is_64bit: bool = True
```

### Platform naming

```python
from core_platform.platform_utils import get_platform

platform_name: str = get_platform()
# platform = "linux_x86_64"
```