📚 Python API

Use the Python API to build stochastic tree and network simulators, define model-specific event rules and custom hazards, and run simulations directly from Python. This reference covers the core simulation interfaces, configuration and input/output utilities, and built-in model implementations.