Control every ESP32 peripheral from Python over USB serial or Bluetooth — GPIO, ADC, DAC, PWM, touch, I2C, SPI, UART, Wi-Fi sockets, BLE, ESP-NOW, RMT, 1-Wire, CAN, I2S, files, NVS, OTA
Project description
python-esp-bridge
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 espbridge import Bridge
with Bridge() as esp: # auto-detects the USB port
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/")
- Firmware (flash once with Arduino IDE) and full docs: https://github.com/HamzaYslmn/python-esp-bridge
- Works on Raspberry Pi OS, Linux, Windows, macOS (Python ≥ 3.10, pyserial).
espbridgeCLI: connection info;espbridge ports: list candidate ports.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_esp_bridge-0.3.1.tar.gz.
File metadata
- Download URL: python_esp_bridge-0.3.1.tar.gz
- Upload date:
- Size: 98.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a51107b2206e86c4d6a21731b5436939a2cec50cadb48d6fe27463b6f7997b2
|
|
| MD5 |
37d903b39284f7ca1ce9547cbb976e6c
|
|
| BLAKE2b-256 |
2cb39aadc291aa2768e17319e9377cc76aa32f0b7c051cc988e5b26a3e31fdf5
|
Provenance
The following attestation bundles were made for python_esp_bridge-0.3.1.tar.gz:
Publisher:
pypi.yml on HamzaYslmn/python-esp-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_esp_bridge-0.3.1.tar.gz -
Subject digest:
9a51107b2206e86c4d6a21731b5436939a2cec50cadb48d6fe27463b6f7997b2 - Sigstore transparency entry: 1739979047
- Sigstore integration time:
-
Permalink:
HamzaYslmn/python-esp-bridge@1535b41e19ba96c1b98914e560ee2f68d0fa3dad -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/HamzaYslmn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@1535b41e19ba96c1b98914e560ee2f68d0fa3dad -
Trigger Event:
push
-
Statement type:
File details
Details for the file python_esp_bridge-0.3.1-py3-none-any.whl.
File metadata
- Download URL: python_esp_bridge-0.3.1-py3-none-any.whl
- Upload date:
- Size: 75.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba6facb08943ab94c9bd6d9b9b01024cc741742087a0cc0a8245f18083794afd
|
|
| MD5 |
649f041683eece44cd992bff7ee12ff4
|
|
| BLAKE2b-256 |
ea977c7ae19ba59f626255791d11e9c71f47a07bc107233e89352440a2231d4b
|
Provenance
The following attestation bundles were made for python_esp_bridge-0.3.1-py3-none-any.whl:
Publisher:
pypi.yml on HamzaYslmn/python-esp-bridge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_esp_bridge-0.3.1-py3-none-any.whl -
Subject digest:
ba6facb08943ab94c9bd6d9b9b01024cc741742087a0cc0a8245f18083794afd - Sigstore transparency entry: 1739979096
- Sigstore integration time:
-
Permalink:
HamzaYslmn/python-esp-bridge@1535b41e19ba96c1b98914e560ee2f68d0fa3dad -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/HamzaYslmn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@1535b41e19ba96c1b98914e560ee2f68d0fa3dad -
Trigger Event:
push
-
Statement type: