Python CGI upload utility

Rotary CNC Converter

Drag and drop a .NC file onto the box below. The server stores it using the original base name, runs convert_laguna_turner_to_hhc_rotary.py, and returns a .mmg download with the same base name.

Upload .NC file

Drop .NC file here or click to choose an convert a file No file selected.

The upload filename must end exactly in .NC. For example, table_leg.NC is accepted and returns table_leg.mmg.

Ready. Choose or drop a .NC file.

What happens internally

  1. The browser uploads the selected .NC file to convert.py.
  2. convert.py stores it as name.NC in a temporary job directory.
  3. convert.py calls convert_laguna_turner_to_hhc_rotary.py name.
  4. Your converter reads name.NC and writes name.mmg.
  5. The response streams name.mmg back as a download.
  6. The temporary job directory is deleted.

Expected converter command

python3 convert_laguna_turner_to_hhc_rotary.py name