An application for streamlining development with ESP chips.
Project description
ESP Helper
Description
ESP Helper is designed to streamline the development process with ESP32 and ESP8266 boards by simplifying common tasks.
In its default run mode, ESP Helper takes a serial port as an argument as well as the chip type, and attempts to flash
all files from ./scripts
to the device. Enhancing this feature is the ability to swap environment variables in the
script prior to flashing, enabling the use of different variable sets for staged deployments. Additionally, ESP Helper
can erase and flash the firmware of the device, with the default behavior being to automatically attempt to download the
latest firmware from micropython.org.
Usage
Usage: main.py [OPTIONS] SERIAL_PORT
Options:
--baud-rate INTEGER Baud rate for the serial communication (default:
115200)
--scripts-path TEXT Absolute path to the directory that holds the
scripts to flash.
--chip [ESP32|ESP8266] Specify the chip type (ESP32 or ESP8266) [required]
--new-firmware Erase and flash firmware. If --firmware-file is not
specified, this script will attempt to download the
latest firmware from micropython.org
--firmware-file TEXT Path to Micropython firmware bin to flash
--write-env-vars Overwrite environment variables in the script
(os.environ['ENV_VAR']) with local environment
variables
--help Show this message and exit.
Default Operation
The default operation of the script is to attempt to flash all files from the ./scripts
directory to the specified chip on the specified port.
Environment Variable Substitution
When the --write-env-vars
flag is used, ESP Helper will replace instances of os.environ['VARIABLE']
with the environment variable of the same name.
The modified script is written to a temp file before being flashed and cleaned up.
This feature can be leveraged to apply different variable sets for different environments, allowing for staged deployments.
Erase and Flash Firmware
The --new-firmware
flag causes the script to erase the current firmware and flash new firmware. If --firmware-file
is not specified, the script will attempt to download the latest .bin firmware from micropython.org.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file esp_helper-0.0.6.tar.gz
.
File metadata
- Download URL: esp_helper-0.0.6.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0a91e689a4f645160b3e50f7e8330c4e9b5e899a9106ce46ff2043a0712a29 |
|
MD5 | 4e2c9065937f98302d2507072acf8e18 |
|
BLAKE2b-256 | c36133ecbe79d1cbf06f54c9a67bdae4d10a8da1258f691ce83f35149b355643 |
File details
Details for the file esp_helper-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: esp_helper-0.0.6-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e6b372ab6ab8e442c1ab0d07ee83dad514cd8b1bbeb9af15482b48377a7de2 |
|
MD5 | 77fd098e27d94e1e980e700c8263a910 |
|
BLAKE2b-256 | 2903320a61f7dd82c2ec07d71d23c319f48d9b0a25d06ed3dd1e2b770260e16f |