Version 1.5.5 passed unit tests under Python 3.14+
For the complete list of new features, improvements, and bug fixes, see the v1.5.3 release notes.
apsimNGpy is an open-source framework for advanced agroecosystem modeling, built entirely in Python. It enables object-oriented, data-driven workflows for interacting with APSIM Next Generation models, offering capabilities for:
- Batch file simulation and model evaluation
- APSIMX file editing and parameter inspection
- Weather data retrieval and pre-processing
- Optimization and performance diagnostics
- Efficient soil profile development and validation
- Parameter sensitivity analysis
Python serves as the execution environment, integrating scientific computing, data analysis, and automation for sustainable agricultural systems.
- .NET SDK — install from https://learn.microsoft.com/en-us/dotnet/core/install/
- Python 3.10+
- APSIM Next Generation — ensure the directory containing
Models.exeis added to your system PATH. - (Optional) Use the official APSIM installer for easiest setup.
- Minimum 8 GB RAM recommended.
## Run APSIM in Python
Option 1 – Install from PyPI (stable)
pip install apsimNGpyIf using the uv virtual environment manager:
uv pip install apsimNGpyOption 2 – Clone the development repository
git clone https://github.com/MAGALA-RICHARD/apsimNGpy.git
cd apsimNGpy
pip install .Option 3 – Install directly from GitHub
pip install git+https://github.com/MAGALA-RICHARD/apsimNGpy.gitUse the pinned APSIM release indicated on the documentation homepage to avoid forward-compatibility issues. The pinned version represents the latest APSIM NG build verified against apsimNGpy’s API and unit tests.
