Metadata-Version: 2.1
Name: restmapi
Version: 1.0.4.28
Summary: MORPHEE REST API SDK
Home-page: https://dev.azure.com/STS-Software/MORPHEE/_git/TOOLS-REST-MAPI?path=/Python
Author: Xavier Dourille
Author-email: dourille@fev.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25
Requires-Dist: psutil>=5.9.8
Requires-Dist: signalr-client>=0.0.7

# REST MAPI Package

REST MAPI (MORPHEE API) package allows to control MORPHEE at runtime using MORPHEE REST API. MAPI main principle is to provide so called MAPI services. From MAPI, you should first ask for a specific service before using it. 

:information_source: Each service has access rights that could be set in UEditor.
## Install
To install restmapi pyhton module, run:
```python
pip install restmapi
```
## Example
Here a small example to start MORPHEE using REST MAPI.
```python
from restmapi.services import MAPIServices

with MAPIServices.instance.get_service("MorpheeProcessControl") as morphee_process_control:
	if morphee_process_control.is_morphee_process_started() != True:
		morphee_process_control.start()
```

