Skip to main content

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 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

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

mps_cli-0.5.0.tar.gz (40.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mps_cli-0.5.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

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

Hashes for mps_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 398867d51c148ef188dd914e9321acfbedb7a07e1f18c5a5c66d4b1c77b136ce
MD5 fe11056f5657bcc22cff9999f14e6599
BLAKE2b-256 7432b8eea01ab68ffc183e7a7d1d0c64f9cedc105c0986e8cc1196cd356ec8ab

See more details on using hashes here.

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

Hashes for mps_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b248fb07483b5de3ab2061b3c53563e5b274b64275dca80b73374b4ce9034a53
MD5 96b99647fc18167ec430e27d32f6838f
BLAKE2b-256 7b70119e76f0f020dd101fa6348c2943e429035836e0b0196b18c7944e9275c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page