Skip to main content

Welcome to the Chap modelling platform!

CI PyPI version Python 3.13+ License: AGPL v3 Documentation

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 with chapkit model overlays

Chapkit-based models ship as opt-in compose overlays. Layer one onto compose.yml (not compose.ghcr.yml — those two are alternatives, not stackable) to run chap-core with the chapkit services already self-registered.

The recommended overlay is compose.chapkit.yml, an umbrella file that includes every chapkit-converted model. As more models are converted to chapkit, they get added here so a single -f flag pulls them all in:

docker compose -f compose.yml -f compose.chapkit.yml up -d

If you only want the EWARS service, use the single-model overlay compose.ewars.yml instead:

docker compose -f compose.yml -f compose.ewars.yml up -d

Deploy on Kubernetes

CHAP can be deployed on Kubernetes using our helm chart which can be found here.

Metadata

Release files for chap-core 2.3.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.3.0
File Size Uploaded
chap_core-2.3.0.tar.gz 335.5 kB Details

Built distribution (wheel)

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

Total release size: 780.0 kB

Release files / chap_core-2.3.0.tar.gz

Download URL chap_core-2.3.0.tar.gz
Size 335.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f3ce18eb4b155b7bd97a2259279651ecb1c8d70d4651ae6be3e415f0f1501d32
BLAKE2b-256 checksum
How to use checksums
b36db2db2f373f2b85268cf5afc2ca58936ae4e3d3caf8badd4b7d04eaa05d11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 14, 2026.

Transparency log

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

Download URL chap_core-2.3.0-py3-none-any.whl
Size 444.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9d637d0411e5de50bbbb206170ea4468214f3fe10aa025750653fbb07dcc4f6a
BLAKE2b-256 checksum
How to use checksums
aa69a4b431a758827ad89205b7ba0f5cf020c28ad3aaf98fdd1b9bfa06b840b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 14, 2026.

Transparency log

Release history Release notifications | RSS feed

2.4.0

2 release files

2.3.1

2 release files

This release

2.3.0 This release

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.0

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.13

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.9

2 release files

0.0.8

2 release files

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