Skip to main content

UNKNOWN

Project description

====================
REPL Transfer Tool
====================

Transfer files via Python REPL (Read Eval Print Loop). This tool was developed
to transfer files from and to MicroPython boards.

This is yet an other tool, there are now several similar tools but not all have
the same features.

Usage
=====

Here is the output of ``python3 -m there --help``:

usage: __main__.py [-h] [-p PORT] [-b BAUDRATE] [-c COMMAND] [-i] [-v]
{detect,run,ls,cat,put,rm,mount} ...

Do stuff via the MicroPython REPL

positional arguments:
{detect,run,ls,cat,put,rm,mount}
sub-command help
detect help locating a board
run execute file contents on target
ls list files
cat print content of one file
put file(s) to copy onto target
rm remove files on target
mount Make target files accessible via FUSE

optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT set the serial port
-b BAUDRATE, --baudrate BAUDRATE
set the baud rate
-c COMMAND, --command COMMAND
execute given code on target
-i, --interactive drop to interactive shell at the end
-v, --verbose show diagnostic messages

The ``-c`` option executes the given string after running all the actions.
The ``-i`` option enters a miniterm sesstion at the end of all other actions.

The tool automatically selects a USB port for communication, it may take the
wrong one if multiple USB serial devices are connected. In that case, use
``there detect`` to list all devices and then ``-p PORT`` to specify the
port to use on the other calls.

.. note::

Currently the escape handling in miniterm is disabled which makes editing
on the MicroPython REPL a bit inconvenient.

Use ``python3 -m there <action> --help`` to get help on sub-commands.

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

mpy-repl-tool-0.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

mpy_repl_tool-0.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file mpy-repl-tool-0.1.tar.gz.

File metadata

  • Download URL: mpy-repl-tool-0.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mpy-repl-tool-0.1.tar.gz
Algorithm Hash digest
SHA256 fe28561c82abfcbe84f98e7b57e0595369eedc966e9214c419a4e66999faf426
MD5 fe4e6e60892f6459a12aa28439edb4c7
BLAKE2b-256 61343a4cecde422637cda0e7329e7e74d9eafc37599decdb190290a12b5bc9a2

See more details on using hashes here.

File details

Details for the file mpy_repl_tool-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mpy_repl_tool-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1067ad36c4cca0eff14c993c304268a80131aceccf45c03dd447c878eb129688
MD5 78d48918d5d8794328064a56e063dd96
BLAKE2b-256 2ee8d6325f9f37b1ecbd00ca635a392098e0b5051c5e40c5132ca0e04d272ac3

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