Simple API in Python 3, with flask, that runs Matlab scripts, in Docker environment. This project depends of:
flaskandoct2py(python libraries)octave(Linux package that's come with octave_cli language)
Octave is an open-source interpreter. The Octave syntax (mathematics-oriented) is largely compatible with Matlab. source
Start container:
docker-compose upThere are two examples:
fibonacci: that calls fibonacci.m file and calculates the Fibonacci series for a number.
http://localhost:5000/fibonacci/{number} factorial: that calls factorial.m file and calculates the Factorial for a number.
http://localhost:5000/factorial/{number}