Python REST database module#

Python implementation of the REST API Eigen example database.

ansys.eigen.python.rest.restdb.db.get_db()[source]#

Get the database instance of the Flask app.

Returns:
Connection

Connection to the app’s database.

ansys.eigen.python.rest.restdb.db.init_app_db(app)[source]#

Initialize a simple database for storing API REST data.