CoCoNet (Python) documentation

CoCoNet (Python) is a headless port of the legacy NetLogo CoCoNet v3 model used for Great Barrier Reef–scale scenarios: coral communities, crown-of-thorns starfish (CoTS), key fish groups, bleaching and cyclones, fisheries, and a wide range of management interventions. The code is designed for two distinct entry points—a CLI for file- and flag-driven runs, and a library published on PyPI as coconet-python for programmatic control—plus file-based configuration and parity-oriented comparison with the original NetLogo implementation.

Two entry points

Entry point Best for How you run
CLI Shells, Docker (official image), CI that passes paths and flags Console script coconet or python -m coconet; YAML, legacy parameter CSV, COCONET_* env vars, and CLI flags. Optional profiling.
Library Custom Python apps, services, notebooks, orchestration pip install coconet-pythonfrom coconet import load_coconet_config, run_coconet (and advanced use of CoconetConfig / CoconetModel).

Details: Getting started, CLI, Python API.

Who this is for

Start here

  1. Getting started — install, first run, project layout; CLI vs library.
  2. Configuration reference — every CoconetConfig field and how it is loaded.
  3. Scenario parameter semantics — legacy CSV labels and what each control does (README-level detail).
  4. Command-line interfaceCLI entry point: flags, profiling, overrides.
  5. Python APIlibrary entry point: load_coconet_config, run_coconet, CoconetModel.
  6. Inputs and outputs — reef CSV, coastline, output.csv columns.
  7. Model overview — ensembles, schedule, interventions at a glance.
  8. Architecture — how the engine maps to NetLogo semantics.
  9. Porting notes — validation and parity focus.
  10. Related tools — viewer, charts, Docker.

Maintainers: Publishing to PyPI — trusted publishing (OIDC) from GitHub Actions.

Published site

This site is built with Jekyll and deployed to GitHub Pages on pushes to the default branch (workflow Deploy documentation to GitHub Pages in .github/workflows/). After you enable Settings → Pages with the GitHub Actions source, the site is available at: