Ctypes-based CUE SDK binding for Python
Project description
cue-sdk-python
Intro
This repository is dedicated for a cuesdk
package on PyPI
cuesdk
package is a ctypes
-based CUE SDK binding for Python 3
Requirements
cuesdk
can be used on the following platforms:
- Windows 7 (x64);
- Windows 8, 8.1 (x64);
- Windows 10 (x64);
- Windows 11 (x64);
- 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
- Microsoft Visual C++ Redistributable for Visual Studio 2019.
macOS
Installing
You can install the package from PyPI:
# Windows
$ py -3 -m pip install -U cuesdk
# macOS
$ python3 -m pip install -U cuesdk
Usage
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))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cuesdk-4.0.84.tar.gz
(313.5 kB
view details)
Built Distribution
cuesdk-4.0.84-py3-none-any.whl
(314.6 kB
view details)
File details
Details for the file cuesdk-4.0.84.tar.gz
.
File metadata
- Download URL: cuesdk-4.0.84.tar.gz
- Upload date:
- Size: 313.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5a5c579557490c2fbe328167724ca541fff64c3e2f60679e8ce1702e5e9475b3
|
|
MD5 |
835aa766de901091143b59c72eceffbb
|
|
BLAKE2b-256 |
6c17aa6af6e70dfbf0b32051d84d7a3393edb3d822f9377b421f60b22ad0d570
|
File details
Details for the file cuesdk-4.0.84-py3-none-any.whl
.
File metadata
- Download URL: cuesdk-4.0.84-py3-none-any.whl
- Upload date:
- Size: 314.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b079fa25eb1c0dd0a5618c1be4b586af0620ece697161536387bae01f46f9003
|
|
MD5 |
98787c5a90df97a87e1821f9557c4b36
|
|
BLAKE2b-256 |
a6a538725e09cfda81a04c60de15381baefa99e6b59c8222d1f667f2c3959ea0
|