Skip to content

Docker container with a flask API in python that can run Matlab/Octave scripts

Notifications You must be signed in to change notification settings

miguelcorreia19/python_matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

python-matlab

Simple API in Python 3, with flask, that runs Matlab scripts, in Docker environment. This project depends of:

  • flask and oct2py (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

Run

Start container:

docker-compose up

Examples

There 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} 

About

Docker container with a flask API in python that can run Matlab/Octave scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published