A RGB Controlling Library for Python
Project description
PyPeripheral
A Python Library for Controlling RGB Devices
Motivation & Goal
I got multiple RGB peripheral devices from multiple brands: Razer, Corsair, MSI. So, whenever I try to use a simple rainbow
effect for each devices, they do not sync. So the main motivation and goal of this project is to "Provide a Python library for controlling every RGB devices all together"
Installing this Project
Installing this library for your personal project would be a piece of cake. There will be multiple ways of installing this project, however the easiest way would be using pip
.
Installation by PIP
pip install PyPeripheral
- That's it!
Example Codes
Please note that current version of PyPeripheral supports two SDKs.
- Corsair
- Razer
Setting Corsair Keyboard's Color All Red
from PyPeripheral import Corsair
c = Corsair.SDK()
c.connect()
c.set_rgb({"Keyboard": (255, 0, 0)})
Setting Razer Mouse Color All Blue
from PyPeripheral import Razer
r = Razer.SDK()
r.connect()
r.set_rgb({"Mouse": (0, 0, 255)})
Setting Every Device All Green
from PyPeripheral import All
a = All.SDK()
a.connect()
a.set_rgb({"All": (0, 255, 0)})
Getting All Razer Devices
>>> r.get_all_device_information()
{'Mouse': [('DeathAdderElite', 0), ('DeathAdderEssential', 1)]}
>>> r.get_device_information(1)
('Mouse', 'DeathAdderEssential')
Demos
For demonstration videos and gifs, please check here for more information! The demo contains most loved Screen Reactive Lightning feature as well! ix that bug yourself, please do a PR. Any Issues or PR are always welcomed!
Supported SDKs
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
File details
Details for the file PyPeripheral-0.1.2.tar.gz
.
File metadata
- Download URL: PyPeripheral-0.1.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8c8d81a1fe4e9911ef64b514ec6bc19a28177332dbf89fd91bdf45a07d7139 |
|
MD5 | cb291954ce67e5110ee6aa26f77360c7 |
|
BLAKE2b-256 | 80229901ced5dd2d29706f6d3184f53de892109a167b6b2219523b5f1d31509c |