Skip to main content

APSIM next generation package interface

Project description

License: Apache-2.0 Documentation PyPI version Total PyPI downloads Read Publication Ask Teams APSIM Next Generation version Run APSIM simulation

apsimNGpy: The Next Generation Agroe-cosystem Simulation Library

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.

Requirements

  1. .NET SDK — install from https://learn.microsoft.com/en-us/dotnet/core/install/

  2. Python 3.10+

  3. APSIM Next Generation — ensure the directory containing Models.exe is added to your system PATH.

  4. (Optional) Use the official APSIM installer for easiest setup.

  5. Minimum 8 GB RAM recommended.

Installation

## Run APSIM in Python

Option 1 – Install from PyPI (stable)

pip install apsimNGpy

If using the uv virtual environment manager:

uv pip install apsimNGpy

Option 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.git

APSIM Next Generation (NG) Installation Tip

Use 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.

Project details


Release history Release notifications | RSS feed

This version

1.5.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apsimngpy-1.5.3.tar.gz (12.0 MB view details)

Uploaded Source

Built Distribution

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

apsimngpy-1.5.3-py3-none-any.whl (8.6 MB view details)

Uploaded Python 3

File details

Details for the file apsimngpy-1.5.3.tar.gz.

File metadata

  • Download URL: apsimngpy-1.5.3.tar.gz
  • Upload date:
  • Size: 12.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for apsimngpy-1.5.3.tar.gz
Algorithm Hash digest
SHA256 b804b1b0efbc390c506ebff35bcca7e6c3e4f384cf59ca4d7f136f4f8e7239c7
MD5 f9025128edb95a9d8a5360b642ed39c0
BLAKE2b-256 204323e6f84075c011b752bbb0d2157f18572fe6df287242b3e9997230c8ba1c

See more details on using hashes here.

File details

Details for the file apsimngpy-1.5.3-py3-none-any.whl.

File metadata

  • Download URL: apsimngpy-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for apsimngpy-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63d2bd8207560f6b71bf8b8497151d8e1d279e0e0152da7eaf24cc1f43ecb568
MD5 c50d58799f5c5a9159c569ef3a8c2089
BLAKE2b-256 f87f51f466add4fe386f5a33497585d816c2c200114322ed7e77057618b44d42

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