ApiGateway¶
Qualified name: api.api_gateway.ApiGateway
- class api.api_gateway.ApiGateway(proj)[source]¶
Bases:
objectEntry point for the MORe API
Only this object needs to be imported and initialized by the API user. All other objects are created by this object.
- Parameters:
proj (Project) – The project instance
Methods
Creates a
PostprocessorSetupobject for managing postprocessing of experimentsCreates a
ProjectHandlerSetupobject for file handling operations, such as import, export, save and loadCreates a
SimulationSetupobject for managing simulations- create_postprocessor_setup() PostprocessorSetup[source]¶
Creates a
PostprocessorSetupobject for managing postprocessing of experimentsExample
>>> from more.api import ApiGateway >>> setup = ApiGateway(proj=proj).create_postprocessor_setup()
- Returns:
A
PostprocessorSetupinstance for managing the postprocessor state- Return type:
- create_project_handler_setup() ProjectHandlerSetup[source]¶
Creates a
ProjectHandlerSetupobject for file handling operations, such as import, export, save and loadExample
>>> from more.api import ApiGateway >>> setup = ApiGateway(proj=proj).create_project_handler_setup()
- Returns:
A
ProjectHandlerSetupinstance for managing file operations- Return type:
ProjectHandlerSetup
- create_simulation_setup() SimulationSetup[source]¶
Creates a
SimulationSetupobject for managing simulationsExample
>>> from more.api import ApiGateway >>> setup = ApiGateway(proj=proj).create_simulation_setup()
- Returns:
A
SimulationSetupinstance for managing the simulation state- Return type: