cuesdk-4.0.3
توضیحات
Ctypes-based CUE SDK binding for Python
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows |
| نام فایل | cuesdk-4.0.3 |
| نام | cuesdk |
| نسخه کتابخانه | 4.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Corsair Memory, Inc. |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/CorsairOfficial/cue-sdk-python |
| آدرس اینترنتی | https://pypi.org/project/cuesdk/ |
| مجوز | MIT |
# cue-sdk-python
[](https://pypi.org/project/cuesdk)
[](https://pypi.org/project/cuesdk)
[](https://pypi.org/project/cuesdk)
## Intro
This repository is dedicated for a `cuesdk` package on [PyPI](https://pypi.org/project/cuesdk)
`cuesdk` package is a `ctypes`-based CUE SDK binding for Python 3
## Requirements
`cuesdk` can be used on the following platforms:
- Windows 7 (32-bit and 64-bit);
- Windows 8, 8.1 (32-bit and 64-bit);
- Windows 10 (32-bit and 64-bit);
- Windows 11 (32-bit and 64-bit);
- macOS 10.13;
- macOS 10.14;
- macOS 10.15;
- macOS 11;
## Prerequisites
- Python 3.9 or higher. Support for earlier versions of Python is not provided. Python 2.7 or lower is not supported.
### Windows
- [iCUE for Windows](https://www.corsair.com/icue)
- Microsoft Visual C++ Redistributable for Visual Studio 2019.
- x86 <https://aka.ms/vs/17/release/vc_redist.x86.exe>
- x64 <https://aka.ms/vs/17/release/vc_redist.x64.exe>
### macOS
- [iCUE for macOS](https://www.corsair.com/icue-mac)
## Installing
You can install the package from [PyPI](https://pypi.org/project/cuesdk):
```sh
# Windows
$ py -3 -m pip install -U cuesdk
```
```sh
# macOS
$ python3 -m pip install -U cuesdk
```
## Usage
```python
from cuesdk import (CueSdk, CorsairDeviceFilter, CorsairDeviceType, CorsairError)
sdk = CueSdk()
def on_state_changed(evt):
print(evt.state)
err = sdk.connect(on_state_changed)
details, err = sdk.get_session_details()
print(details)
devices, err = sdk.get_devices(
CorsairDeviceFilter(device_type_mask=CorsairDeviceType.CDT_Keyboard))
if err == CorsairError.CE_Success:
for d in devices:
print(sdk.get_device_info(d.device_id))
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl cuesdk-4.0.3:
pip install cuesdk-4.0.3.whl
نصب پکیج tar.gz cuesdk-4.0.3:
pip install cuesdk-4.0.3.tar.gz