A python client for the OpenRGB SDK
Project description
OpenRGB-Python
OpenRGB-Python is a client for the OpenRGB SDK, a manufacturer-independent, cross-platform way to control your RGB devices. OpenRGB-Python can be used to interface with other programs, create custom effects, or anything else you can think of!
I started this project because I wanted to be able to control the color of my lights based on temps. I tried to implement the features in the best (easiest to use) way possible.
SDK Feature Support:
- Setting client name
- Getting device info
- Setting color by device
- Setting color by zone
- Setting color by led
- Setting mode
- Setting custom mode
- Resizing zones
Additional Features (Not part of the OpenRGB SDK):
- Loading profiles
- Saving profiles
Installation
requires python >= 3.7
Use this method for the newest, but possibly buggy, package:
pip3 install git+https://github.com/jath03/openrgb-python#egg=openrgb-python
Arch Linux:
yay -S python-openrgb-git
For a more stable package:
pip3 install openrgb-python
Arch Linux:
This AUR package is out of date. Use yay -S python-openrgb
python-openrgb-git
instead.
Thanks to @GabMus for the AUR packages
Usage
from openrgb import OpenRGBClient
from openrgb.utils import RGBColor, DeviceType
client = OpenRGBClient()
client.clear() # Turns everything off
motherboard = client.get_devices_by_type(DeviceType.MOTHERBOARD)[0]
motherboard.set_color(RGBColor(0, 255, 0))
motherboard.zones[0].set_color(RGBColor(255, 0, 0))
motherboard.zones[1].leds[0].set_color(RGBColor.fromHSV(0, 100, 100))
motherboard.set_mode("breathing")
client.save_profile("profile1")
Documentation
https://openrgb-python.readthedocs.io/en/latest/
For an alternative python implementation, check out B Horn's OpenRGB-PyClient
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
Built Distribution
File details
Details for the file openrgb-python-0.3.2.tar.gz
.
File metadata
- Download URL: openrgb-python-0.3.2.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae59ca2de8e7c6392cee780dc1e0bde1f86d86bfded96548924c005087c9127 |
|
MD5 | b37e0238dd9388ddf7e72c19e774f6a2 |
|
BLAKE2b-256 | 9532050407e3016199db43f7f0cfcba577bae4b281eb0e136895f8631e873b8f |
File details
Details for the file openrgb_python-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: openrgb_python-0.3.2-py3-none-any.whl
- Upload date:
- Size: 29.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777999c2f2ea6ac7fc600ca470826b76ae6d0f28b2bb7a85855801abf1021905 |
|
MD5 | 4029a15728fa2abec64735c20b75e18b |
|
BLAKE2b-256 | b555428fee7f9edaaf5852418bc3ff997e8c7d5afa6e765196a84ed3aa1d3020 |