Skip to main content

# Simulatr

[![PyPI version](https://img.shields.io/pypi/v/simulatr.svg)](https://pypi.org/project/simulatr/) [![Python versions](https://img.shields.io/pypi/pyversions/simulatr.svg)](https://pypi.org/project/simulatr/) [![PyPI downloads](https://img.shields.io/pypi/dm/simulatr.svg)](https://pypi.org/project/simulatr/) [![License](https://img.shields.io/pypi/l/simulatr.svg)](https://github.com/langmm/simulatr/blob/main/LICENSE.txt) [![Tests](https://github.com/langmm/simulatr/actions/workflows/runtests.yml/badge.svg)](https://github.com/langmm/simulatr/actions/workflows/runtests.yml) [![Conda build](https://github.com/langmm/simulatr/actions/workflows/build-conda.yml/badge.svg)](https://github.com/langmm/simulatr/actions/workflows/build-conda.yml) [![Docs](https://github.com/langmm/simulatr/actions/workflows/publish-docs.yml/badge.svg)](https://langmm.github.io/simulatr/)

Simulatr provides a [gymnasium](https://gymnasium.farama.org/) environment for reinforcement learning using different simulators including:

# Installation

Simulatr can be installed via pip or pixi can be utilized

` pip install -e . `

In addition to installing the gym, you will also need to install the simulators you wish to run.

# Simulator installation

Simulatr will install the required simulators automatically, but you can also install the simulators yourself via the simulatr CLI before running a simulator

` python -m simulatr install `

# Running a simulator

## Running to completion

` python -m simulatr run apsimx --crop-name wheat --from-example `

## Running interactively

` python -m simulatr run apsimx --crop-name wheat --from-example --timestep=10 # days `

Additional documentation can be found [here](https://langmm.github.io/simulatr/),

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!– insertion marker –> ## [v0.1.0](https://github.com/langmm/simulatr/releases/tag/v0.1.0) - 2026-08-20

<small>[Compare with v0.0.1](https://github.com/langmm/simulatr/compare/v0.0.1…v0.1.0)</small>

### Features

  • Tools for hosting simulator engines as fastapi applications on beam

  • Tools for creating n8n tools for simulator engine applications

  • CLI for managine simulator applications and n8n tools

  • Support for soil file input to crop models

  • Utilities for iterating over pydantic fields that checks for annotations that should be skipped (used for n8n forms and CLI)

  • Ability to create ApsimX models piecewise from components

### Added

## [v0.0.1](https://github.com/langmm/simulatr/releases/tag/v0.0.1) - 2026-08-07

<small>[Compare with first commit](https://github.com/langmm/simulatr/compare/324cfff51d20d4a57f146604e5bbe60959c564f5…v0.0.1)</small>

Initial release migrating from [ApsimXGym](https://github.com/langmm/ApsimX/tree/yggdrasil/ApsimXGym).

### Features included

  • Support for ApsimX simulator engine including installation from GitHub

  • Classes for running simulator engines interactively

  • Classes for running simulator engines as [gymnasium](https://gymnasium.farama.org/) RL environments

  • Ability to generated LLM prompts for simulator based RL environments for [AgriManager](https://github.com/CHIGUI0/AgriManager)

  • CLI for running simulators and managing simulatr configuration

  • pixi environments and tasks

  • Sphinx based [documentation](https://langmm.github.io/simulatr) with GHA workflow to automatically updated

  • Conda recipe with GHA workflow to build recipe

  • Tests for all classes with GHA workflow to run tests

Release files for simulatr 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simulatr 0.1.0
File Size Uploaded
simulatr-0.1.0.tar.gz 646.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for simulatr 0.1.0
File Interpreter ABI Platform
simulatr-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 750.3 kB

Release files / simulatr-0.1.0.tar.gz

Download URL simulatr-0.1.0.tar.gz
Size 646.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7291e4cc1de77a0a2035ac16fba11608614fd0ea310dd898162a059f090f37b2
BLAKE2b-256 checksum
How to use checksums
8568b3af2a85e05768e168a16e68186dfd942de2969ca379017ab0c728f77ade
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / simulatr-0.1.0-py3-none-any.whl

Download URL simulatr-0.1.0-py3-none-any.whl
Size 103.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71c778af4f7dc9bf4803cc687d97440bfbfa5386b1481d51e7498e8d810cc38f
BLAKE2b-256 checksum
How to use checksums
fb983c84626d6f96546a69de432cdf556c145bb215b7c03dabac90998c63602e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page