Skip to main content

replx

PyPI version Python 3.10+ License: MIT

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.
  • firmware: Check, download, or update firmware.

Package and build

  • mip: Search and install MicroPython packages from the official index or GitHub.
  • pkg: Search, download, and update packages.
  • mpy: Compile .py files 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.

Connectivity

  • wifi: Manage Wi-Fi configuration and connection state.
  • ble: Manage BLE radio, scan, advertise, GATT server/client, and L2CAP.

Notes

  • scan, status, whoami, and shutdown are 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-65535 and stores the selected port in ~/.replx/.config as AGENT_PORT=....

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

replx-1.22.2.tar.gz (430.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

replx-1.22.2-py3-none-any.whl (503.1 kB view details)

Uploaded Python 3

File details

Details for the file replx-1.22.2.tar.gz.

File metadata

  • Download URL: replx-1.22.2.tar.gz
  • Upload date:
  • Size: 430.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for replx-1.22.2.tar.gz
Algorithm Hash digest
SHA256 b4f5eea21c03056cd48394f6164d32fb29cd5eae3c32a78658acd7696e2d2250
MD5 9f943df86080f5bf0c7c21e28878d364
BLAKE2b-256 79b102bd5fa17e019d70b731594cf6dc3ee92fcae1e1e1a21cac4e6bb236957f

See more details on using hashes here.

File details

Details for the file replx-1.22.2-py3-none-any.whl.

File metadata

  • Download URL: replx-1.22.2-py3-none-any.whl
  • Upload date:
  • Size: 503.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for replx-1.22.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1865bcac1b6ad9fab01b1f5bbc40706555584d44a3b445a3a295fb479dddc033
MD5 e8c07fb74db795e6be9213bfdddba87e
BLAKE2b-256 172b1c7a3dc4f385136536d3d638b0c4f85a467dec2f643449307387543804f8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.22.2 This release

2 files

1.22.0

2 files

1.21.4

2 files

1.21.0

2 files

1.20.0

2 files

1.12.0

2 files

1.10.18

2 files

1.10.17

2 files

1.6.7

2 files

1.0

2 files

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