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, *.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.5.1.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.5.1-py3-none-any.whl (45.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mps_cli-0.5.1.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.5.1.tar.gz
Algorithm Hash digest
SHA256 6eb74f83825b55d8d9550b4152c1f65b400b0ad1e706d3318035eafcfd7b5308
MD5 6a9c7f6108b85e66eddd9458a20c11de
BLAKE2b-256 4b31789a08cea2a01385c42aa7dd0d3dcfef2085e8b6557ed50ae25757976f58

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mps_cli-0.5.1-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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0fe15ccb48c7efb45c547c0c11626288f4f346a64f9cd8150c78d22efc33ab
MD5 b5f3de89fb5540b4af61cf3410665b6f
BLAKE2b-256 98d672d9663b83d98035f1cb69efa2e1cb44d019435990b5d9a4e0b07a716448

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