Skip to main content
BlinkStick Python

BlinkStick Python interface to control devices connected to the computer.

What is BlinkStick? It’s a smart USB LED pixel. More info about it here:

http://www.blinkstick.com

Resources

Requirements

  • Python

  • BlinkStick pip module

  • Libusb for Mac OSX

Requirements Installation

Linux

Install pip (Python package management software):

sudo apt-get install python-pip

Mac OS X

Install libusb with homebrew:

brew install libusb

Install pip

sudo easy_install pip

Known Errors

ValueError: No backend available

This means that the Python usb module cannot find your installation of libusb. It seems to be an issue when you have homebrew installed somewhere that is not expected.

It can be mitigated with

sudo ln -s `brew --prefix`/lib/libusb-* /usr/local/lib/

Microsoft Windows

  • Download and install Python 2.7.9 or any 2.x later version

  • During the installation, make sure you select “Add python.exe to Path” to install on local hard drive

Python 2.7.9 and later already comes with pip making it very easy to install BlinkStick Python package on Windows.

BlinkStick package Installation

Linux and Mac OS X

Install blinkstick Python package with pip:

sudo pip install blinkstick

Microsoft Windows

Open commandline environment by using Win+R keyboard shortcut and typing in:

cmd

Assuming that Python was installed into C:\Python27 folder, type in the following into the command window:

C:\Python27\Scripts\pip.exe install blinkstick

Command line tool

Together with the Python module an additional command line tool is installed to control BlinkSticks.

blinkstick --pulse red

You can find more details about command line tool options and usage examples in the wiki.

Permission problems in Linux and Mac OS X

If the script returns with an error

Access denied (insufficient permissions)

You can either run the script with sudo, for example:

sudo blinkstick --set-color random

Or you can add a udev rule to allow any user to access the device without root permissions with this single command.

sudo blinkstick --add-udev-rule

There is also another equivalent command that does exactly the same thing:

echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"20a0\", ATTR{idProduct}==\"41e5\", MODE:=\"0666\"" | sudo tee /etc/udev/rules.d/85-blinkstick.rules

Reboot computer after you have added the command and all users will have permissions to access the device without the need of root permissions.

Maintainers

Release files for BlinkStick 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BlinkStick 1.2.0
File Size Uploaded
BlinkStick-1.2.0.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for BlinkStick 1.2.0
File Interpreter ABI Platform
BlinkStick-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / BlinkStick-1.2.0.tar.gz

Download URL BlinkStick-1.2.0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a9324e04a3733c89476182bddeb109b4487de0dc7d01f587e07e191d501cb365
BLAKE2b-256 checksum
How to use checksums
d5bbd57bfbe938e6f2135d14a153999c3bf82288e315bfc546411160c6cbaadd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1

Release files / BlinkStick-1.2.0-py3-none-any.whl

Download URL BlinkStick-1.2.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeabbb207180b46f92aec392dd508c24e6ddaede6101f4eb54e7a91bed424d08
BLAKE2b-256 checksum
How to use checksums
4f5a2c0c40fe5fc231dfe8ae03bdacf0b112f0553403e18540619ececcee7743
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.1

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.8

1 release file

1.1.7

1 release file

1.1.6

1 release file

1.1.5

1 release file

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page