Skip to content

Pre-commit hook for exporting AnyLogic standalone models to run in continuous integration.

License

Notifications You must be signed in to change notification settings

chrisschopp/anylogic-export

Repository files navigation

PyPi version License: MIT prek Ruff

anylogic-export

A CLI tool for exporting AnyLogic models to standalone Java applications.

Can be used as a pre-commit (or prek) hook to run AnyLogic experiments in a continuous integration pipeline.

Installation

To install from PyPI using uv, run:

uv add anylogic-export

Alternatively, to install with pip, run:

pip install anylogic-export

Commands

Show help.

anylogic -h

Initialize an AnyLogic model repository for use with anylogic-export as a pre-commit hook.

anylogic init

Export an AnyLogic model from the terminal

Assumes:

  1. There is only one AnyLogic model in the current directory.
  2. The model has an experiment named CustomExperiment, the default name for an experiment that doesn't display the model window.
anylogic export

Prek Quickstart

Create .pre-commit-config.yaml in your project's root directory with the following contents:

repos:
 - repo: https://github.com/chrisschopp/anylogic-export
   rev: v0.1.0
   hooks:
    - id: anylogic-export
      args: [export, --experiments=CustomExperiment]
      files: ModelName/*

Install the hook with:

prek install

Benchmarking

Originally developed for one of the biggest AnyLogic models in the world. Exporting should take less time for most projects.

Bitbucket repo

https://bitbucket.org/chris-schopp/anylogic-export/src/main/

Used for testing Bitbucket continuous integration.

About

Pre-commit hook for exporting AnyLogic standalone models to run in continuous integration.

Resources

License

Stars

Watchers

Forks

Packages

No packages published