Skip to main content

Ctypes-based CUE SDK binding for Python

Project description

cue-sdk-python

PyPI license PyPI version info PyPI supported Python versions

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

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


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)

Uploaded Source

Built Distribution

cuesdk-4.0.84-py3-none-any.whl (314.6 kB view details)

Uploaded Python 3

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

Hashes for cuesdk-4.0.84.tar.gz
Algorithm Hash digest
SHA256 5a5c579557490c2fbe328167724ca541fff64c3e2f60679e8ce1702e5e9475b3
MD5 835aa766de901091143b59c72eceffbb
BLAKE2b-256 6c17aa6af6e70dfbf0b32051d84d7a3393edb3d822f9377b421f60b22ad0d570

See more details on using hashes here.

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

Hashes for cuesdk-4.0.84-py3-none-any.whl
Algorithm Hash digest
SHA256 b079fa25eb1c0dd0a5618c1be4b586af0620ece697161536387bae01f46f9003
MD5 98787c5a90df97a87e1821f9557c4b36
BLAKE2b-256 a6a538725e09cfda81a04c60de15381baefa99e6b59c8222d1f667f2c3959ea0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page