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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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