Skip to main content

Climate Health Analysis Platform (CHAP)

Project description

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.

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

chap_core-2.1.0.tar.gz (297.5 kB view details)

Uploaded Source

Built Distribution

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

chap_core-2.1.0-py3-none-any.whl (396.3 kB view details)

Uploaded Python 3

File details

Details for the file chap_core-2.1.0.tar.gz.

File metadata

  • Download URL: chap_core-2.1.0.tar.gz
  • Upload date:
  • Size: 297.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chap_core-2.1.0.tar.gz
Algorithm Hash digest
SHA256 a042676e63a926852c31e70bd248f225f3d6a75b9049f8c02e0bac84f99af547
MD5 4400c40b82948b290733ff633648c025
BLAKE2b-256 2bd65c7e075c95ff916e45bd3c5fc7fe73b370716493411b3f551e626ee38d7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for chap_core-2.1.0.tar.gz:

Publisher: push-to-pypi.yml on dhis2-chap/chap-core

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

File details

Details for the file chap_core-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: chap_core-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 396.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chap_core-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b5d52b1c25090f52247e0eeca4d4e041691096b887e6bd54f4bb5699e6bc0f
MD5 ee8d5e63d72b6d0c88973067cbb93857
BLAKE2b-256 85a30b180e5d28bc904a7ac11613d4a04b7393d348a1996eea6d197c135c4b2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for chap_core-2.1.0-py3-none-any.whl:

Publisher: push-to-pypi.yml on dhis2-chap/chap-core

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