Skip to main content

Welcome to the Chap modelling platform!

CI PyPI version Python 3.13+ License: AGPL v3 Documentation OpenSSF Scorecard

This is the main repository for the Chap modelling platform.

Read more about the Chap project here

Code documentation

The main documentation for the modelling platform is located at https://chap.dhis2.org/chap-modeling-platform/.

Development / contribution

Information about how to contribute to the Chap Modelling Platform: https://chap.dhis2.org/chap-modeling-platform/contributor/.

Issues/Bugs

If you find any bugs or issues when using this code base, we appreciate it if you file a bug report here: https://github.com/dhis2-chap/chap-core/issues/new

Launch development instance using Docker

cp .env.example .env
docker compose up

Rebuilding after a source change

docker compose up will reuse an existing chap-core-chap image if one is already built — it does not automatically rebuild when you edit source. If you see a stale chap_core.__version__ or a fix that clearly didn't land inside the running container, use one of:

make restart       # down && up -d --build (preserves volumes incl. chap-db)
make force-restart # down -v && build --no-cache && up (WIPES VOLUMES)
make chap-version  # print the chap_core version running inside the container

make restart is the right hammer 90% of the time. make force-restart also wipes the Postgres volume, so reach for it only when you need a clean slate. make chap-version is also printed automatically at the end of make restart so version drift is visible at a glance.

Running marketplace models

Chapkit-based models are installed from the Chap Marketplace with chap-admin, once chap is running. A fresh deployment needs this manual step after the first docker compose up -d:

chap-admin install-all

It starts every model service with a verified stable version, registers it in chap from what the running service reports, and adds the model's verified configurations. chap-admin install chapkit_simple_multistep_model does the same for one model. Include the overlay it writes in later Compose commands: docker compose -f compose.yml -f compose.marketplace.yml up -d. See the CLI setup guide for the details.

Do not start models with compose.chapkit.yml or compose.ewars.yml in a deployment. A service started that way registers a model template but gets no configurations, so it cannot be run. Those overlays are kept for development.

Deploy on Kubernetes

The Helm chart for Kubernetes lives in chap-kubernetes.

Metadata

Release files for chap-core 2.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chap-core 2.8.0
File Size Uploaded Provenance Actions
chap_core-2.8.0.tar.gz 477.7 kB With provenance Details for chap_core-2.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chap-core 2.8.0
File Interpreter ABI Platform Actions
chap_core-2.8.0-py3-none-any.whl Python 3 none any Details for chap_core-2.8.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / chap_core-2.8.0.tar.gz

Download URL chap_core-2.8.0.tar.gz
Size 477.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9d29788d2033ffada2a9f9145a99eba7ed6d42790280a63320efd251ba0c7a72
BLAKE2b-256 checksum
How to use checksums
313e274dda0e14d166b38c331a1e90f4677b593f15ee960fec8cc3ab89a82de0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / chap_core-2.8.0-py3-none-any.whl

Download URL chap_core-2.8.0-py3-none-any.whl
Size 582.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1b27db8f8277429ad75f879c8f96572d2eac3461303a94b5a8eaa673deb90a8
BLAKE2b-256 checksum
How to use checksums
163924e5276f14822c60901f339341bbc3d1d97e668a9f78d59160539712f783
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for chap-core 2.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chap_core-2.8.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.8.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page