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.
To install from PyPI using uv, run:
uv add anylogic-exportAlternatively, to install with pip, run:
pip install anylogic-exportShow help.
anylogic -hInitialize an AnyLogic model repository for use with anylogic-export as a pre-commit hook.
anylogic initAssumes:
- There is only one AnyLogic model in the current directory.
- The model has an experiment named
CustomExperiment, the default name for an experiment that doesn't display the model window.
anylogic exportCreate .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 installOriginally developed for one of the biggest AnyLogic models in the world. Exporting should take less time for most projects.
https://bitbucket.org/chris-schopp/anylogic-export/src/main/
Used for testing Bitbucket continuous integration.