Main Content


Namespace: matlab.production_server

Python object encapsulating a connection to a MATLAB Production Server instance


The matlab.production_server.client.MWHttpClient class creates a connection object that encapsulates the connection between the client and a MATLAB® Production Server™ instance. Once the connection is created, you can dynamically call all MATLAB functions hosted on the server instance.


my_client = MWHttpClient(url,[timeout_ms=timeout_ms],[ssl_context=ssl_context])

Input Arguments

expand all

URL of the server instance to which the client connects, specified as a string. This server instance hosts the MATLAB functions which the client can evaluate.

Number of milliseconds the client waits for a response from the server instance, specified as an integer.

SSL protocol to use for client-server communication, specified as an ssl.SSLContext object. The Python® client library uses the Python ssl library library for supporting HTTPS requests to server instances. For information about the SSL protocols that the server supports, see ssl-protocols.

This argument is required if the URL to connect to the server instance uses HTTPS.

HTTPS communication using the Python client API is supported only on Windows® and Linux® platforms. macOS is not supported.




Raised if there is a problem communicating with the server instance.


Raised if a function call fails to execute.


Raised if the specified timeout value is not a positive int or long.


Raised if the specified timeout value is less than zero.

Version History

expand all