Skip to main content

Simple Python SDK for the SteelSeries GameSense API

Project description

steelseries

A simple wrapper for the SteelSeries GameSense API in Python.

Features

  • Register games and events with SteelSeries Engine
  • Send live event data (0–100) to control RGB devices
  • Built-in auto-sanitization of names

Example

# import
import steelseries as ss

# register game
ss.register_game("TESTING", "NEO", "TESTING DEMO", 1)

# register event
ss.register_event("TESTING", "HEALTH")

# animate the lighting - bounce in from 0 to 100 in 1 second
ss.send_event_data_interpolated("TESTING", "HEALTH", 0, 100, 1, 0.01, "bounce_in", True)

# send in background to not halt app - will flicker if more than 1 command is run at the same time
ss.send_event_data_interpolated_async("TESTING", "HEALTH", 100, 50, 0.5, 0.01, "ease-in", True) 
ss.send_event_data_interpolated("TESTING", "HEALTH", 100, 0, 0.5, 0.01, "ease-in", True)

# send single value, 50%
ss.send_event_data("TESTING", "HEALTH", 50, True) # wait until done to put 50%

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

steelseries-0.3.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

steelseries-0.3.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file steelseries-0.3.1.tar.gz.

File metadata

  • Download URL: steelseries-0.3.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for steelseries-0.3.1.tar.gz
Algorithm Hash digest
SHA256 71414d3ef40a719a51c7c1116c1d0f77dc97c98f87a5e0a5db0045dea47aaf41
MD5 f2b4e1b555c88be7c7f6bda424e318c0
BLAKE2b-256 9ea20bbe67217423cb4a2779bb432fb2ad75441a31415d6ad571f9bb5cb75baa

See more details on using hashes here.

File details

Details for the file steelseries-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: steelseries-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for steelseries-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48e53e4ea6a4bd429d680d6716d6b05ff119ef8deafeb51c1b66d5fdfa156932
MD5 f4f8d30f49fa4b31f87d09cf6eb88506
BLAKE2b-256 2de0e00c3588c19a110664add51ba64924e9005cd410f4c251611e3f1eb24af6

See more details on using hashes here.

Supported by

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