Skip to main content

Work with Kappa rule-based models in Python

Project description

PyKappa

PyPI

PyKappa is a Python package for working with rule-based models. It supports simulation and analysis of a wide variety of systems whose individual components interact as described by rules that transform these components in specified ways and at specified rates. See our website pykappa.org for a tutorial, examples, and documentation.

Development

Developer requirements can be installed via:

pip install -r requirements.txt
With uv (optional alternative to pip): Install [uv](https://docs.astral.sh/uv/getting-started/installation/), then:
uv sync --dev

To access uv dependencies, run your commands through uv like

uv run python

Or, if you want to run commands normally, create a virtual environment:

uv venv # Do this once
source .venv/bin/activate # Do this every new shell

and run commands as usual. (deactivate exits the venv.)

Adding a Python package dependency (this automatically updates pyproject.toml):

uv add [package-name]

Adding a package as a dev dependency:

uv add --dev [package-name]

To run correctness tests, run pytest. Running ./tests/cpu-profiles/run_profiler.sh will CPU-profile predefined Kappa models and write the results to tests/cpu-profiles/results. We use the Black code formatter, which can be run as black .

Project details


Download files

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

Source Distribution

pykappa-0.1.7.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

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

pykappa-0.1.7-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

Details for the file pykappa-0.1.7.tar.gz.

File metadata

  • Download URL: pykappa-0.1.7.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pykappa-0.1.7.tar.gz
Algorithm Hash digest
SHA256 369861b2689afffdb41559208b31173200b180ce754d89abb59b72cddc76705c
MD5 0f3e5668a35eda1f6f7e793b6d20be2a
BLAKE2b-256 9824dc7cd846b7ac15c39984767b72a2cf5ed635ac9103781f0fc81a6f4bde15

See more details on using hashes here.

Provenance

The following attestation bundles were made for pykappa-0.1.7.tar.gz:

Publisher: publish.yml on berkalpay/pykappa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pykappa-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pykappa-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 32.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pykappa-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 28dfd752a6f1247de0a308d2faf89fa869de3e7b28b5323a3c29f5e53c98c5a1
MD5 0b02866cd8b2d260c3cb915a2832e043
BLAKE2b-256 7f63c22026a16d44d8e0f75da89810c6d956e3016c4ac88587101e7de8173b1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pykappa-0.1.7-py3-none-any.whl:

Publisher: publish.yml on berkalpay/pykappa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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