PyKappa is a Python package for simulating and analyzing rule-based models of the variety specified by the Kappa language. It supports

  • programatic construction of systems from Kappa strings;

  • manipulation of systems such as by adding and removing agents and editing rules;

  • monitoring the history of observables;

  • cached tracking of rule embeddings for algorithmically efficient simulation updates; and

  • passing systems to KaSim for faster compiled execution.

Visit the examples gallery to see how PyKappa can be used to simulate systems of molecular interactions such as polymerization and gene regulation. See the language manual for a detailed description of the Kappa language.

PyKappa is available via pip:

pip install pykappa