Skip to the content.

Bundled networking utilities

The port ships three pure-MicroPython programs that double as regression tests and as usable standalone tools — drop them into a DOS image (or run them in the REPL) and they work end-to-end against real servers.

Running a program

MP.EXE SCRIPT.PY [args ...]

runs SCRIPT.PY and exits; the remaining words land in sys.argv. Exit status is 0, or 1 on an uncaught exception. With no argument MP.EXE starts the interactive REPL.

You can also paste a program straight into the REPL: press Ctrl-E, paste, then Ctrl-D. This needs no file at all, which makes it the reliable option in the environment noted below.

Reading files from disk works. Verified with one binary on QEMU + FreeDOS, DOSBox-X and dosiz: MP.EXE SCRIPT.PY with sys.argv, open() / read() / write() / append, import of a .py, and the os / shutil calls.

The build bundles the DOS/32A extender. PMODE/W is still selectable with --extender=pmodew, but its real-mode call path hangs on any DOS call that touches a physical sector — see docs/WIP.md item 2.

All three run inside the SSH rig harness (rigs/ssh-rig/, rigs/tls-rig/) against a paramiko/local-server fixture and confirm PASS end-to-end; see docs/TESTS.md for the full catalog.

Each tool has its own manual page: wget.py, scp.py, sftp.py.