Blynk Library Python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.
Alternatives To Blynk Library Python
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Core64,3956a day ago1,163November 30, 20232,519apache-2.0Python
:house_with_garden: Open source home automation that puts local control and privacy first.
Casaos18,37027 days ago111November 28, 2023228apache-2.0Go
CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
a day ago10zlibC
A simple and easy-to-use library to enjoy videogames programming
Iot For Beginners13,966
5 days ago54mitC++
12 Weeks, 24 Lessons, IoT for All!
Johnny Five13,1051,7241772 months ago300July 06, 202157otherJavaScript
JavaScript Robotics and IoT programming framework, developed at Bocoup.
Gobot8,54320312 days ago32October 30, 2023124otherGo
Golang framework for robotics, drones, and the Internet of Things (IoT)
Home Assistantconfig4,518
9 days ago206otherJavaScript
:house: Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to :star: it. Updated FREQUENTLY!
Tuya Convert4,258
2 months ago191mitPython
A collection of scripts to flash Tuya IoT devices to alternative firmwares
Raspap Webgui4,143
a day ago42November 25, 202335gpl-3.0PHP
Simple wireless AP setup & management for Debian-based devices
Blynk Library3,731
a month ago7mitC++
Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
Alternatives To Blynk Library Python
Select To Compare

Alternative Project Comparisons

Python client for Blynk IoT

Note: The library has been updated for Blynk 2.0.
Please remain on v0.2.0 for legacy 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 Mobile App: Google Play | App Store


Social: Webpage / Facebook / Twitter / Kickstarter
Community Forum:
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
  • log_event
  • events: Vn, connected, disconnected, invalid_auth
  • TCP and secure TLS/SSL connection support
  • can run on embedded hardware, like ESP8266, ESP32, W600 or OpenWrt

Ubuntu/Linux/Raspberry Pi installation

pip install blynk-library-python

For Blynk.Edgent Dynamic Provisioning, please see examples/Edgent_Linux_RPi

ESP32/ESP8266 installation

  • Get the latest MicroPython firmware and flash it to your board
  • 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(''))
  • For ESP8266, you may need to disable secure connection using:
    blynk = BlynkLib.Blynk('YourAuthToken', insecure=True)

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)

Popular Raspberry Pi Projects
Popular Internet Of Things Projects
Popular Hardware Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Raspberry Pi
Internet Of Things