MPS Command Line Interface (MPS-CLI) is a library to parse MPS files and build the model as Python objects.
Project description
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 nodeSModel
- represents a modelSSolution
- represents a solutionSRepository
- the repository containing the parsed model and meta-information
Limitations
The plugin 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mps_cli-0.2.0.tar.gz
(13.0 kB
view details)
Built Distribution
mps_cli-0.2.0-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file mps_cli-0.2.0.tar.gz
.
File metadata
- Download URL: mps_cli-0.2.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67e4d982488c732aa5844d13f0e094a2c97bc94586892f4e07287e5801617e2 |
|
MD5 | a92518d5c7258b47fc803658d83dda99 |
|
BLAKE2b-256 | 522a539dc166b620b49689f065f79887c891a3470532747ecc923b6adea839a7 |
File details
Details for the file mps_cli-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mps_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e308e2698d48186f12d396bf9791b60625a3ec13d057d5ced526e516dd5a20d |
|
MD5 | b45b687cb7e5d25f15044024f27d48e6 |
|
BLAKE2b-256 | 40722925629c2c6ec8b4d9ecad9cb3145b937996505d9207e42f3ea5c04ee103 |