Skip to main content

Work with Kappa rule-based models in Python

Project description

kappybara

See our website: kappybara.io.

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

kappybara-0.1.2.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

kappybara-0.1.2-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file kappybara-0.1.2.tar.gz.

File metadata

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

File hashes

Hashes for kappybara-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c7e0a7a75e9a519039ece995895c558bbdf3eb201ba2f6ca006e41b216434121
MD5 e98da2d17ef9abbf1d2e8064197960ce
BLAKE2b-256 4cb0769f3deea3aecb3a3411bb24c80acbbfd3b25240501d292cfcd4621ff76d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kappybara-0.1.2.tar.gz:

Publisher: publish.yml on berkalpay/kappybara

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

File details

Details for the file kappybara-0.1.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for kappybara-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3745a1ff3e32ff457dda0fb9c060f6fafd8441b0bd50702513e1b1294b3b37ee
MD5 e1f2fbc5d7835e46688254c9a52ebb6d
BLAKE2b-256 174fb8179815127b571c9808f83e8d7db950d615bc796cd752441783de1c822f

See more details on using hashes here.

Provenance

The following attestation bundles were made for kappybara-0.1.2-py3-none-any.whl:

Publisher: publish.yml on berkalpay/kappybara

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