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
Metadata
Release files for PyPeripheral 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyPeripheral-0.1.2.tar.gz | 10.1 kB | Without provenance | Details for PyPeripheral-0.1.2.tar.gz |
Release files / PyPeripheral-0.1.2.tar.gz
| Download URL | PyPeripheral-0.1.2.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf8c8d81a1fe4e9911ef64b514ec6bc19a28177332dbf89fd91bdf45a07d7139
|
|
BLAKE2b-256 checksum How to use checksums |
80229901ced5dd2d29706f6d3184f53de892109a167b6b2219523b5f1d31509c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for PyPeripheral 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.