Skip to main content

esplink

Control every ESP32 peripheral from Python over USB serial — GPIO, PWM, ADC, DAC, touch, I2C, SPI, UART, Wi-Fi (with TCP/UDP sockets through the ESP32 radio) and BLE. Flash the bridge firmware once, then it's all Python.

from esplink import Bridge

with Bridge() as esp:                      # USB first, then Bluetooth, then Wi-Fi
    esp.gpio.mode(2, "output")
    esp.gpio.write(2, 1)
    print(esp.adc.read_mv(34), "mV")
    esp.i2c.init(sda=21, scl=22)
    print(esp.i2c.scan())
    esp.wifi.connect("ssid", "password")
    status, body = esp.net.http_get("http://example.com/")
  • On-device rules react without the host in the loop (esp.watch.add("adc", pin=34, above=3200, do=("pwm", 13, 0))), and esp.radio_off() silences Wi-Fi + Bluetooth entirely for jitter-sensitive realtime work (frees ~110 KB heap, unlocks the ADC2 pins).
  • Firmware (flash once with Arduino IDE) and full docs: https://github.com/HamzaYslmn/esplink
  • Works on Raspberry Pi OS, Linux, Windows, macOS (Python ≥ 3.13, pyserial).
  • esplink CLI: connection info; esplink ports: list candidate ports.

Metadata

Release files for esplink 2.0.1

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

Source distribution (sdist)

Source distribution for esplink 2.0.1
File Size Uploaded Provenance
esplink-2.0.1.tar.gz 1.7 MB With provenance Details

Built distribution (wheel)

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

Total release size: 3.1 MB

Security for esplink 2.0.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for esplink-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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.

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