Skip to main content

A Python library for quantitative models.

Project description

Momba Logo

PyPi Package Tests Docs Code Style: Black Gitter DOI

Momba is a Python framework for dealing with quantitative models centered around the JANI-model interchange format. Momba strives to deliver an integrated and intuitive experience to aid the process of model construction, validation, and analysis. It provides convenience functions for the modular construction of models effectively turning Python into a syntax-aware macro language for quantitative models. Momba's built-in exploration engine allows gaining confidence in a model, for instance, by rapidly prototyping a tool for interactive model exploration and visualization, or by connecting it to a testing framework. Finally, thanks to the JANI-model interchange format, several state-of-the-art model checkers and other tools are readily available for model analysis.

For academic publications, please cite Momba as follows:

Maximilian A. Köhl, Michaela Klauck, and Holger Hermanns: Momba: JANI Meets Python. In: J. F. Groote and K. G. Larsen (eds.) 27th International Conference on Tools and Algorithms for the Construction and Analysis of Systems, TACAS 2021. DOI: https://doi.org/10.1007/978-3-030-72013-1_23.

In case you made anything with Momba or plan to do so, we would highly appreciate if you let us know about your exciting project by opening a discussion or dropping us a message. 🙌

✨ Features

  • first-class import and export of JANI models
  • syntax-aware macros for the modular construction of models with Python code
  • built-in exploration engine for PTAs, MDPs and other model types
  • interfaces to state-of-the-art model checkers, e.g., the Modest Toolset and Storm
  • an OpenAI Gym compatible interface for training agents on formal models
  • pythonic and statically typed APIs to tinker with formal models
  • hassle-free out-of-the-box support for Windows, Linux, and MacOS

🚀 Getting Started

Momba is available from the Python Package Index:

pip install momba[all]

Installing Momba with the all feature flag will install all optional dependencies unleashing the full power and all features of Momba. Check out the examples or read the user guide to learn more.

If you aim at a fully reproducible modeling environment, we recommend using Pipenv or Poetry for dependency management. We also provide a GitHub Template for Pipenv.

🏗 Contributing

We welcome all kinds of contributions!

For minor changes and bug fixes feel free to simply open a pull request. For major changes impacting the overall design of Momba, please first start a discussion outlining your idea.

To get you started, we provide a development container for VS Code containing everything you need for development. The easiest way to get up and running is by clicking on the following badge:

VS Code: Open in Container

Opening the link in VS Code will clone this repository into its own Docker volume and then start the provided development container inside VS Code so you are ready to start coding.

⚖️ Licensing

Momba is licensed under either MIT or Apache 2.0 at your opinion.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache 2.0 license, shall be dual licensed as above, without any additional terms or conditions.

🦀 Rust Crates

The exploration engine of Momba is written in Rust levering PyO3 for Python bindings. In case you are a Rust developer you might find some of the crates in engine/crates useful. In particular, the crate momba-explore allows developing model analysis tools with JANI support in Rust based on Momba's explicit state space exploration engine. The Rust command line tool momba-sidekick directly exposes some of this functionality.

🙏 Acknowledgements

This project is partially supported by the German Research Foundation (DFG) under grant No. 389792660, as part of TRR 248.

Thanks to Sarah Sterz for the awesome Momba logo and Felix Freiberger for the creative name.

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

momba-0.6.11.tar.gz (13.3 MB view details)

Uploaded Source

Built Distribution

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

momba-0.6.11-py3-none-any.whl (104.4 kB view details)

Uploaded Python 3

File details

Details for the file momba-0.6.11.tar.gz.

File metadata

  • Download URL: momba-0.6.11.tar.gz
  • Upload date:
  • Size: 13.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for momba-0.6.11.tar.gz
Algorithm Hash digest
SHA256 694af606ca67d3bcedc8640ee07232089c6f7403741952a859d9f1600b0ec4bf
MD5 3aa8d61c65e46fdaeb8f3a1798e71d9c
BLAKE2b-256 cb9761ef60ffe36868a61e1d22d1c912e27d8637de5005162c632719a7414b5b

See more details on using hashes here.

File details

Details for the file momba-0.6.11-py3-none-any.whl.

File metadata

  • Download URL: momba-0.6.11-py3-none-any.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for momba-0.6.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f48193ab8fcd1f26bb142daf0ec088d20d8e4cbe1afd8ca0133a8db623ac23
MD5 a3d069a57fd53205739f323e633222d0
BLAKE2b-256 b1feead7c9647874b9b8d0d7203517aece01e52f2d8c7f5ce6c400e303684980

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