Metadata-Version: 2.4
Name: mps-cli
Version: 0.5.0
Summary: MPS Command Line Interface (MPS-CLI) is a library to parse MPS files and build the model as Python objects.
Project-URL: Homepage, https://github.com/mbeddr/mps-cli
Project-URL: Bug Tracker, https://github.com/mbeddr/mps-cli/issues
Author-email: Daniel Ratiu <ratiud@googlemail.com>, Prithvi Venkat <prithvi.rvce@gmail.com>, Michael Langhammer <mich.langhammer@googlemail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown

## MPS CLI Python Library

This project provides a Python library which parses MPS files and builds the object model.

### Features
The following features are available:
- load MPS files (*.mpsr, *.mps, *.jar) and expose their content as Python object model 
  - solutions, models, root nodes, nodes, children, references, properties
- extract the meta-information and expose it as Python object model
  - list of languages, their concepts with information about properties, references, children

The core of the Python object model is given by the following classes:
- `SNode` - represents a node
- `SModel` - represents a model
- `SSolution` - represents a solution
- `SRepository` - the repository containing the parsed model and meta-information

### Limitations
The library has currently the following limitations:
- the recovered language information reflects only the used language in the loaded solutions

### Run tests

- `cd mps-cli-py`
- `python -m unittest discover`

### Build and upload to pypi.org

#### Mac
- `increase version number`
- `python3 -m build`
- `python3 -m twine upload dist/*`

### Win
- `increase version number`
- `py -m build`
- `py -m twine upload dist/*`

To install build and twine:
- `py -m pip install --upgrade build`
- `py -m pip install --upgrade twine`