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 library has currently the following limitations:
- the recovered language information reflects only the used language in the loaded solutions
Run tests
cd mps-cli-pypython -m unittest discover
Build and upload to pypi.org
Mac
increase version numberpython3 -m buildpython3 -m twine upload dist/*
Win
increase version numberpy -m buildpy -m twine upload dist/*
To install build and twine:
py -m pip install --upgrade buildpy -m pip install --upgrade twine
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mps_cli-0.5.0.tar.gz.
File metadata
- Download URL: mps_cli-0.5.0.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
398867d51c148ef188dd914e9321acfbedb7a07e1f18c5a5c66d4b1c77b136ce
|
|
| MD5 |
fe11056f5657bcc22cff9999f14e6599
|
|
| BLAKE2b-256 |
7432b8eea01ab68ffc183e7a7d1d0c64f9cedc105c0986e8cc1196cd356ec8ab
|
File details
Details for the file mps_cli-0.5.0-py3-none-any.whl.
File metadata
- Download URL: mps_cli-0.5.0-py3-none-any.whl
- Upload date:
- Size: 45.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b248fb07483b5de3ab2061b3c53563e5b274b64275dca80b73374b4ce9034a53
|
|
| MD5 |
96b99647fc18167ec430e27d32f6838f
|
|
| BLAKE2b-256 |
7b70119e76f0f020dd101fa6348c2943e429035836e0b0196b18c7944e9275c0
|