Skip to main content

CLI tool for interacting with MicroPython devices

Project description

Microterm

CLI tool for interacting with MicroPython devices

Installation

Install microterm from the command line using pip.

pip install microterm

Getting Started

Launch the microterm terminal from the Python module.

python -m microterm

Usage Examples

Display command list.

Microterm> help
Commands ("help <command>" for details):
cat  connect  disconnect  get   ls     mv   pwd     reboot  rmdir
cd   devices  exit        help  mkdir  put  python  rm      uname

Get help for a specific command.

Microterm> help connect
Connect to MicroPython device.
Usage: connect DEVICE

List serial devices.

Microterm> devices
COM7 - USB Serial Device (COM7)

Connect to device.

Microterm> connect com7

List files on device.

Microterm> ls
main.py  settings.txt

Copy file from host machine (such as a laptop running Microterm) to the connected MicroPython device.

Microterm> put main.py

Copy file from connected MicroPython device to the host machine.

Microterm> get main.py

Read contents of a file.

Microterm> cat main.py
print('Hello world!')

Execute script on MicroPython device.

Microterm> python main.py
Press CTRL+C to return to Microterm
Hello world!

Enter MicroPython REPL.

Microterm> python
Press CTRL+C to return to Microterm
MicroPython v1.20.0 on 2023-04-26; SparkFun Pro Micro RP2040 with RP2040
Type "help()" for more information.
>>>

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

microterm-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

microterm-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file microterm-0.1.0.tar.gz.

File metadata

  • Download URL: microterm-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for microterm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 de26dda4bc19034b9a0b0df5892de3996d6697abaeaa32bd088f8a2485f068ec
MD5 1bc3447cfc6bbdedbb3b5e65ee5c06e3
BLAKE2b-256 951edff5d2b81974d6fb21543977de6022eabc715fd30d229c92ab98f1c1e5dc

See more details on using hashes here.

File details

Details for the file microterm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: microterm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for microterm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11b69e38612bed50b44b2a94a495e74483ef60ebd88c79c632b61f84e5c95af8
MD5 458c2d0e58987724ef5f32e88e528a9e
BLAKE2b-256 a75471c4117a46269db0e6b8038c3516c0acb64838abedf6b39e2f98617b8d46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page