The Data Explorer allows the exploration of data on investments and results in the fight against AIDS, tuberculosis and malaria around the world.
The Global Fund invests in smart, effective health programs to end AIDS, tuberculosis and malaria as epidemics. The Data Explorer visualizes where our investments come from, where they are and what they achieve by providing pledge and contribution data, grant financial data, and results data at global, regional and country levels.
We regularly improve and enhance the Data Explorer, and those updates are noted on the Data Explorer Updates page on the Global Fund website. The data behind the Data Explorer and our API are available through the Global Fund Data Service.
It makes use of Data API Middleware in order to retrieve all data needed for the visualisations/tables/filters and detail pages.
- Website: data.theglobalfund.org
- Authors: Zimmerman
- Github Repo:
- Automated dataset updates via cron jobs.
- Dockerized deployment for easy setup and scalability.
- Dependency management with
uvfor reproducible environments.
- Python installed with
uvfor dependency management. - Docker installed for containerized deployment.
- Bash shell for running setup scripts.
After installation, run: uv sync followed by source .venv/bin/activate.
Run the project with uv run flask run.
Commitlint is used to check your commit messages.
When setting up the repository, after locally setting up an environment, ensure pre-commit is installed:
- Add pre-commit:
uv add pre-commitorpip install pre-commit. - Install pre-commit to git:
uv run pre-commit installorpre-commit install. - Install the commit hook to git:
uv run pre-commit install --hook-type commit-msgorpre-commit install --hook-type commit-msg.
- flake8 is used to maintain code quality in pep8 style
- isort is used to maintain the imports.
- black can be used to automatically format Python code to ensure consistency.
- pre-commit is used to enforce commit styles in the form:
feat: A new feature
fix: A bug fix
docs: Documentation only changes
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a feature
perf: A code change that improves performance
test: Adding missing or correcting existing tests
chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
After adding a package that needs to be included in requirements.txt for Docker, run:
uv export --no-dev --no-hashes --format requirements-txt > requirements.txtscripts/setup_refresh_cron.sh contains an easy setup for the cron job that updates the datasets.
Run it with sudo bash scripts/setup_refresh_cron.sh.
Ensure Docker is installed.
Run with sudo docker compose up -d
Rebuild with sudo docker compose up --build