MCPcopy Create free account
hub / github.com/datakind/Data-Observation-Toolkit

github.com/datakind/Data-Observation-Toolkit @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
150 symbols 641 edges 32 files ⚖ MIT 118 documented · 79% ● updated 14d ago1.1.5-rc1 · 2024-01-16★ 5528 open issues

Browse by type

⨍ Functions 117◇ Types & classes 16↳ Endpoints 17
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DPG Badge

Verified as a Digital Public Good by the Digital Public Goods Alliance.

The Data Observation Toolkit (DOT)

The Data Observation Toolkit (DOT) monitors data to flag problems with data integrity and scenarios that might need attention. Typical tests include checks for missing/duplicate and inconsistent data, outliers, and domain-specific signals.

DOT includes a simple user interface for configuring the powerful dbt and Great Expectations libraries, as well as a database for storing and classifying data monitoring results. The ultimate aim of DOT is to provide easier access to data monitoring without the need for deep technical skills.

DOT Overview

Background

In 2019, the United Nations Statistical Commission stated: "Every misclassified or unrecorded death is a lost opportunity to ensure other mothers and babies do not die in the same way. When it comes to health, better data can be a matter of life and death."

DataKind developed DOT in response to a demand for a tool to increase trust in public health data — data which underpins the ability of a health system to provide equitable, data-driven, optimized health service delivery and improve policy response. DOT was developed with globally distributed frontline health partners, expertise from Ministries of Health, frontline health workers, and funders.

Read more: - Pathways to Increasing Trust in Public Health Data - Empowering Health Worker and Community Health Systems - Harnessing the power of data science in healthcare - How Data Empowers Health Workers—and Powers Health Systems

Sample Data

You are free to use these rich datasets ranging from global COVID-19 patients to United States childhood obesity records, as well as a synthetic dataset showcasing DOT's capabilities on frontline health data.

Conceptual Overview Demo

Watch the brief video below for a quick, high-level walkthrough of DOT in action. It demonstrates the core concepts like projects, entities, and running a quick test in the UI.

⚠️ Important: This video is strictly a conceptual overview. For actual deployment and configuration, please follow our Documentation Directory below.

🎥 Watch: DOT Conceptual Overview Demo

Quick Start

The fastest way to get started using DOT is to use the Docker environment and the provided demo data.

Prerequisites

  1. Install Docker Desktop. We recommend using at least 4GB memory (set in Docker preferences).
  2. If running on a Mac M1/M2 chip, install Rosetta and set export DOCKER_DEFAULT_PLATFORM=linux/amd64 in your terminal.
  3. Install Python 3.8.9 or later.
  4. Install the necessary Python packages: bash pip install gdown pip install python-on-whales

Running the DOT Quick-Start Demo

  1. Start Docker on your machine.
  2. Open a Terminal and navigate into the docker sub-folder: bash cd <PATH_TO_DOT>/Data-Observation-Toolkit/docker/
  3. Run the demo script:
  4. Mac/Linux: python3 run_demo.py
  5. Windows: python3 .\run_demo.py
  6. The script will automatically start the DOT backend, launch the Appsmith User Interface, and open it in your browser. Wait until the terminal says "Press return to stop DOT container" — this indicates the demo is fully launched.
  7. Once you are done with the demo, press return in your Terminal to gracefully stop the containers.

Documentation Directory

If you want to move beyond the Quick Start, please refer to our detailed documentation files below:

  • 🚀 Deployment Guide: Instructions for manual Docker builds, Airflow orchestration, EC2 setup, and manual Appsmith setup.
  • ⚙️ Configuration Guide: Instructions for adding entities and configuring tests (via the UI or Raw SQL).
  • 🏃 Execution Guide: Instructions on how to manually trigger pipelines or execute Airflow DAGs.
  • 🏗️ Architecture & Troubleshooting: Deep dive into dbt/Great Expectations internals, the full DB schema, Superset visualization, port troubleshooting, useful database queries, and contributing/development guidelines.

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 65
Method 52
Route 17
Class 16

Languages

Python100%

Modules by API surface

dot/self_tests/unit/test_dot_utils.py17 symbols
dot/utils/utils.py15 symbols
dot/utils/configuration_utils.py13 symbols
dot/self_tests/self_tests_utils/base_self_test_class.py10 symbols
dot/utils/dbt.py8 symbols
dot/utils/connection_utils.py7 symbols
dot/self_tests/unit/test_dot_utils_schema_improved.py7 symbols
dot/self_tests/unit/test_dbt.py7 symbols
dot/great_expectations/plugins/custom_expectations/custom_dataset.py7 symbols
dot/utils/great_expectations.py6 symbols
dot/self_tests/unit/test_dbt_logs_safe.py6 symbols
dot/self_tests/self_tests_utils/dbt_base_safe_test_class.py6 symbols

Datastores touched

airflowDatabase · 1 repos

For agents

$ claude mcp add Data-Observation-Toolkit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page