Skip to main content

MPS Command Line Interface (MPS-CLI) is a library to parse MPS files and build the model as Python objects.

Reason this release was yanked:

Accidentally published version 0.6.0. This release was not intended and has been yanked. Please use version 0.5.1 instead.

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, *.mpb, *.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
    • if "mps/plugins" directory is considered the language information is loaded as an object model

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.6.0.tar.gz (42.2 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.6.0-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

Details for the file mps_cli-0.6.0.tar.gz.

File metadata

  • Download URL: mps_cli-0.6.0.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for mps_cli-0.6.0.tar.gz
Algorithm Hash digest
SHA256 689b3aa23f582a8f1d6800f2075ce37b59337449fb8019481ac119b4e4f593ae
MD5 b8f103bc8e01ed363f933b01fbdf7942
BLAKE2b-256 b767cce19743d9a3e1b7a047935a3151520ccdbd3b7995bc13c11bb3e9ccac74

See more details on using hashes here.

File details

Details for the file mps_cli-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: mps_cli-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 45.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for mps_cli-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fcd9b81b632a7b1b662cdeb64d07aea208a477059a0ca1d179ce26faedda9f7a
MD5 5dc86678c3bd6bd924a2eae010313027
BLAKE2b-256 5e7f05c3682a40df3ad59c527ac7382c5310f5536e86718d49e349873cf441ba

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