Python REST server module#

Python implementation of the REST API Eigen example server.

ansys.eigen.python.rest.server.create_app()[source]#

Initialize the REST API server.

Returns:
Flask

Instance of the application.

Raises:
InvalidUsage

In case no JSON-format request body was provided.

InvalidUsage

In case no ‘value’ is provided within the request body.

InvalidUsage

In case the given argument is not a string.

InvalidUsage

In case the given type is not in the ALLOWED_TYPES tuple.