replx is a fast, modern MicroPython CLI: turbo REPL, robust file sync (put/get), project install, mpy-cross integration, and smart port discovery.
Project description
replx
replx is a CLI tool for MicroPython development. It uses a single local agent process to manage multiple CLI sessions and multiple boards in a consistent workflow.
What replx provides
- Shared connection management across terminal sessions
- Single local agent process per PC with home-scoped port persistence
- Foreground and background board handling per session
- Workspace-level default device configuration
- File operations on device storage
- Script execution, REPL access, and utility commands
Installation
pip install replx
Command summary
Connection and session
setup: Initialize workspace settings and register a default device.scan: List available serial devices.status: Show session and connection state.fg: Change the foreground device for the current session.whoami: Show the current foreground device.disconnect: Close a device connection.shutdown: Stop the agent and clear active sessions.
Execution and interaction
exec(-c): Execute inline Python code on the device.run: Run a local or device-side script.repl: Open an interactive REPL session.shell: Open a device file-system shell.
File operations
ls: List files and directories.cat: Print file content.get: Download files from device to local.put: Upload files from local to device.cp: Copy files or directories on device.mv: Move or rename files or directories on device.rm: Remove files or directories on device.mkdir: Create directories on device.touch: Create an empty file or update timestamps.
Device management
usage: Show device storage usage.reset: Perform a soft reset.format: Format the device file system.init: Run initialization scripts on device.wifi: Manage Wi-Fi configuration and status.firmware: Check, download, or update firmware.
Package and build
pkg: Search, download, and update packages.mpy: Compile.pyfiles to.mpy.
Hardware
gpio: Read, write, and run GPIO sequences.pwm: Generate and monitor PWM signals.adc: Read ADC pins and run a board-side scope UI.uart: Open, write, read, and monitor UART.spi: Open, write, read, and transfer SPI data.i2c: Scan, read, write, and dump I2C devices.
Notes
scan,status,whoami, andshutdownare special commands and do not accept--port.- Most device commands can omit the port when a foreground or workspace default device is available.
- The agent listens on a UDP port from
49152-65535and stores the selected port in~/.replx/.configasAGENT_PORT=....
License
MIT
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
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 replx-1.10.2.tar.gz.
File metadata
- Download URL: replx-1.10.2.tar.gz
- Upload date:
- Size: 331.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6ab9d7cbb61a895fb8eaec81551700f22a064bcb8fa2769f501a3d5e0f977a
|
|
| MD5 |
6caee51fd580088c353a3ff55be26351
|
|
| BLAKE2b-256 |
89fb748a8010adaadd1c462e4f2559d8e36e735cf3c80237d4654a22946cefd7
|
File details
Details for the file replx-1.10.2-py3-none-any.whl.
File metadata
- Download URL: replx-1.10.2-py3-none-any.whl
- Upload date:
- Size: 401.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
088b0f0a3486da63eba4f2c70968d591dc58a0466c74d6d64597e26d1a58dc96
|
|
| MD5 |
db16351a1f71810225e1b3fc8b2777a4
|
|
| BLAKE2b-256 |
be8525c7b7cd3cd7b253f01ad2940f7b2f924d24a4f2eba975b7c53ef34dea09
|