Awesome Open Source
Awesome Open Source

Python client for Blynk

GitHub version GitHub download GitHub stars GitHub issues License

If you like Blynk - give it a star, or fork it and contribute! GitHub stars GitHub forks

What is Blynk?

Blynk provides iOS and Android apps to control any hardware over the Internet or directly using Bluetooth. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets, right on your smartphone. Blynk is the most popular IoT platform used by design studios, makers, educators, and equipment vendors all over the world.

Blynk Banner


Blynk App: Google Play | App Store

Blynk Server


Social: Webpage / Facebook / Twitter / Kickstarter
Help Center:
Community Forum:
Examples Browser:
Blynk for Business:

Usage example

import BlynkLib

# Initialize Blynk
blynk = BlynkLib.Blynk('YourAuthToken')

# Register Virtual Pins
def my_write_handler(value):
    print('Current V1 value: {}'.format(value))

def my_read_handler():
    # this widget will show some time in seconds..
    blynk.virtual_write(2, int(time.time()))

while True:


  • Python 2, Python 3, MicroPython support
  • Linux, Windows, MacOS support
  • virtual_write
  • sync_virtual
  • set_property
  • notify, tweet
  • log_event
  • events: Vn, readVn, connected, disconnected
  • can run on embedded hardware, like ESP8266, ESP32, W600 or OpenWrt

Ubuntu/Linux/Raspberry Pi installation

pip install blynk-library-python

ESP8266/ESP32 installation

  • Get the latest MicroPython firmware and flash it to your board
    Note: for ESP32 you can also try LoBo firmware
  • Edit example (put your auth token and wifi credentials)
  • Use ampy or any other method to transfer files to the device
    export AMPY_PORT=/dev/ttyUSB0
    ampy mkdir /lib
    ampy put /lib/
    ampy put ./examples/hardware/
    Note: LoBo firmware stores files uder /flash directory, use ampy mkdir /flash/lib and so on
  • Open device terminal and reboot the board (or type execfile(''))

PyCom installation

  • This should work with WiPy 1.0, 2.0, 3.0, LoPy, SiPy, GPy, FiPy
  • Instructions are the same as for ESP32, just use example

Implementations for other platforms


This project is released under The MIT License (MIT)

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (54,487
raspberry-pi (643
iot (580
internet-of-things (112
smartphone (30