Create a MATLAB Production Server Python Client
You can call a MATLAB® function deployed to MATLAB Production Server™ from a Python® client application. To create a Python client:
Install the MATLAB Production Server client runtime files.
For details, see Install the MATLAB Production Server Python Client.
In consultation with the MATLAB programmer, collect the MATLAB function signatures that comprise the services in the application.
Write Python code to instantiate a connection to a MATLAB Production Server instance.
For different ways to create a connection, see Create Client Connection.
Create the required MATLAB data for function inputs and outputs.
For using arrays as function arguments, see matlab Python Module. For other data types, see Pass Data Between MATLAB Production Server and Python.
Evaluate the MATLAB functions.
For more information about ways to call deployed MATLAB functions, see Invoke Packaged MATLAB Functions.
Close the client connection.
See Also
matlab.production_server.client.MWHttpClient