Download .morph files from the Server using an EM cmd line API

The simplest option would be to use the ems-cmd command-line utility. It’s lightweight, cross-platform, and can be used from any programming language, including Python.

It comes with EasyMorph Server installation, or can be downloaded separately.

See here for details: GitHub - easymorph/server-cmd: Command line API client for EasyMorph Server

Alternatively, you can go a longer route by designing an API endpoint with a workflow that will:

  • Copy all the .morph files into a temporary directory
  • Zip them
  • Return an HTTP response that initiates downloading of the zip archive

This would be more secure and wouldn’t require any 3rd party software and would download all files at once instead of fetching them one by one.

1 Like